mirror of https://github.com/davisking/dlib.git
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:
parent
4a95f8bd72
commit
6a9637ca54
|
@ -511,7 +511,7 @@ if (NOT TARGET dlib)
|
||||||
# -std=c++11 option if you let it propagate it to nvcc in some
|
# -std=c++11 option if you let it propagate it to nvcc in some
|
||||||
# cases. So instead we disable this and manually include
|
# cases. So instead we disable this and manually include
|
||||||
# things from CMAKE_CXX_FLAGS in the CUDA_NVCC_FLAGS list below.
|
# things from CMAKE_CXX_FLAGS in the CUDA_NVCC_FLAGS list below.
|
||||||
if (!MSVC)
|
if (NOT MSVC)
|
||||||
set(CUDA_PROPAGATE_HOST_FLAGS OFF)
|
set(CUDA_PROPAGATE_HOST_FLAGS OFF)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue