Commit 9da8b3c0 authored by incardon's avatar incardon

Fixing conditional CUDA compilation

parent 0b5fa4a1
...@@ -8,7 +8,9 @@ add_library(vcluster STATIC VCluster/VCluster.cpp) ...@@ -8,7 +8,9 @@ add_library(vcluster STATIC VCluster/VCluster.cpp)
########################### ###########################
target_compile_options(vcluster_test PUBLIC $<$<COMPILE_LANGUAGE:CUDA>:-Xcudafe "--display_error_number --diag_suppress=2885 --diag_suppress=2887 --diag_suppress=2888 --diag_suppress=186 --diag_suppress=111" --expt-extended-lambda>) if(CUDA_FOUND)
target_compile_options(vcluster_test PUBLIC $<$<COMPILE_LANGUAGE:CUDA>:-Xcudafe "--display_error_number --diag_suppress=2885 --diag_suppress=2887 --diag_suppress=2888 --diag_suppress=186 --diag_suppress=111" --expt-extended-lambda>)
endif()
target_include_directories (vcluster_test PUBLIC ${CUDA_INCLUDE_DIRS}) target_include_directories (vcluster_test PUBLIC ${CUDA_INCLUDE_DIRS})
target_include_directories (vcluster_test PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) target_include_directories (vcluster_test PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment