Fix CPU-only build
This commit is contained in:
2
setup.py
2
setup.py
@@ -53,6 +53,8 @@ class Build(build_ext):
|
|||||||
|
|
||||||
if ext.build_with_cuda:
|
if ext.build_with_cuda:
|
||||||
cmake_args += ['-DDIFFVG_CUDA=1']
|
cmake_args += ['-DDIFFVG_CUDA=1']
|
||||||
|
else:
|
||||||
|
cmake_args += ['-DDIFFVG_CUDA=0']
|
||||||
|
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
env['CXXFLAGS'] = '{} -DVERSION_INFO=\\"{}\\"'.format(env.get('CXXFLAGS', ''),
|
env['CXXFLAGS'] = '{} -DVERSION_INFO=\\"{}\\"'.format(env.get('CXXFLAGS', ''),
|
||||||
|
Reference in New Issue
Block a user