diff --git a/CMakeLists.txt b/CMakeLists.txt index 76cc0b4c..401c74bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -112,7 +112,9 @@ endif() if(ENABLE_CUDA) add_definitions(-DGPU) - include_directories("${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES}") + if(NOT WIN32) + include_directories("${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES}") + endif() if(CUDA_COMPUTE_MODEL VERSION_GREATER_EQUAL ${CUDA_COMPUTE_MODEL_75} AND CMAKE_CUDA_COMPILER_VERSION VERSION_LESS_EQUAL 9) message(STATUS "CUDA 10 is required for Compute Model 7.5 - Lowering settings to 7.0") set(CUDA_COMPUTE_MODEL ${CUDA_COMPUTE_MODEL_70})