From cccc90b340454c265b4467165b6cc0836aa39fa3 Mon Sep 17 00:00:00 2001 From: AlexeyAB Date: Fri, 22 Feb 2019 18:47:10 +0300 Subject: [PATCH] CMakeLists.txt temporary fix for CUDA --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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})