File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -523,7 +523,7 @@ if (NOT TARGET dlib)
523523 # -std=c++11 option if you let it propagate it to nvcc in some
524524 # cases. So instead we disable this and manually include
525525 # things from CMAKE_CXX_FLAGS in the CUDA_NVCC_FLAGS list below.
526- if (APPLE OR MSVC )
526+ if (APPLE )
527527 set (CUDA_PROPAGATE_HOST_FLAGS OFF )
528528 # Grab all the -D flags from CMAKE_CXX_FLAGS so we can pass them
529529 # to nvcc.
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ if (CMAKE_VERSION VERSION_LESS "3.1.2")
6161elseif ( MSVC AND CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 3.3)
6262 # Clang can compile all Dlib's code at Windows platform. Tested with Clang 5
6363 message (STATUS "C++11 activated." )
64- add_global_compiler_switch ("-Xclang -fcxx-exceptions -Xclang -Wno-microsoft-pure-definition -Xclang -Wno-unused-local-typedef " )
64+ add_global_compiler_switch ("-Xclang -fcxx-exceptions" )
6565 set (COMPILER_CAN_DO_CPP_11 1)
6666elseif (MSVC AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.0.24215.1 )
6767 message (STATUS "NOTE: Visual Studio didn't have good enough C++11 support until Visual Studio 2015 update 3 (v19.0.24215.1)" )
You can’t perform that action at this time.
0 commit comments