Protect against inadvertent activation of USE_CUDA
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Sat, 1 Aug 2020 10:31:39 +0000 (12:31 +0200)
committerGitHub <noreply@github.com>
Sat, 1 Aug 2020 10:31:39 +0000 (12:31 +0200)
driver/others/Makefile

index 5653f3c25d711fc11a97bf5ad80cb5c3f4ba7849..7558ec05818bccd5b0eeaebdb90b21a0933599ea 100644 (file)
@@ -47,8 +47,10 @@ endif
 endif
 
 ifdef USE_CUDA
+ifeq ($(USE_CUDA), 1)
 COMMONOBJS     += cuda_init.$(SUFFIX)
 endif
+endif
 
 ifdef FUNCTION_PROFILE
 COMMONOBJS     += profile.$(SUFFIX)