Fix CPU-only build

This commit is contained in:
Tzu-Mao Li
2020-12-05 15:41:01 -05:00
parent f86fb949d0
commit bfacc6f1cf

View File

@@ -53,6 +53,8 @@ class Build(build_ext):
if ext.build_with_cuda:
cmake_args += ['-DDIFFVG_CUDA=1']
else:
cmake_args += ['-DDIFFVG_CUDA=0']
env = os.environ.copy()
env['CXXFLAGS'] = '{} -DVERSION_INFO=\\"{}\\"'.format(env.get('CXXFLAGS', ''),