make sure that CUDA is present before pushing CUDA specific compiler flags.
This commit is contained in:
parent
f9f64109c1
commit
acb1b1542a
@ -140,8 +140,10 @@ endif (OpenMP_FOUND)
|
||||
|
||||
#--- add DKS compiler flags if enabled ----------------------------------------
|
||||
if (DKS_FOUND)
|
||||
set(DKS_CXX_FLAGS -DDKS_OPENCL -DDKS_CUDA -I${CUDA_INCLUDE_DIRS} -I${DKS_INCLUDE_DIR})
|
||||
target_compile_options(PMusr PUBLIC ${DKS_CXX_FLAGS})
|
||||
if (CUDA_FOUND)
|
||||
set(DKS_CXX_FLAGS -DDKS_OPENCL -DDKS_CUDA -I${CUDA_INCLUDE_DIRS} -I${DKS_INCLUDE_DIR})
|
||||
target_compile_options(PMusr PUBLIC ${DKS_CXX_FLAGS})
|
||||
endif (CUDA_FOUND)
|
||||
endif (DKS_FOUND)
|
||||
|
||||
#--- add library dependencies -------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user