From 6a9637ca54226898008b2470c17bf6db6ed0731e Mon Sep 17 00:00:00 2001 From: Davis King Date: Wed, 4 Jan 2017 09:10:13 -0500 Subject: [PATCH] Fixed cmake script so that nvcc gets the correct compiler options sent to it (in particular on mac os x, where this flag needs to be set this way for it to work in some cases). --- dlib/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib/CMakeLists.txt b/dlib/CMakeLists.txt index 1409bb586..90fbed885 100644 --- a/dlib/CMakeLists.txt +++ b/dlib/CMakeLists.txt @@ -511,7 +511,7 @@ if (NOT TARGET dlib) # -std=c++11 option if you let it propagate it to nvcc in some # cases. So instead we disable this and manually include # things from CMAKE_CXX_FLAGS in the CUDA_NVCC_FLAGS list below. - if (!MSVC) + if (NOT MSVC) set(CUDA_PROPAGATE_HOST_FLAGS OFF) endif()