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).
This commit is contained in:
Davis King 2017-01-04 09:10:13 -05:00
parent 4a95f8bd72
commit 6a9637ca54
1 changed files with 1 additions and 1 deletions

View File

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