From bfacc6f1cfbff98480d2e0850265a4a6085abe21 Mon Sep 17 00:00:00 2001 From: Tzu-Mao Li Date: Sat, 5 Dec 2020 15:41:01 -0500 Subject: [PATCH] Fix CPU-only build --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index e01f5a2..fdb9f67 100644 --- a/setup.py +++ b/setup.py @@ -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', ''),