CMakeLists.txt temporary fix for CUDA

This commit is contained in:
AlexeyAB 2019-02-22 18:47:10 +03:00
parent d1ee38ca05
commit cccc90b340
1 changed files with 3 additions and 1 deletions

View File

@ -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})