Skip to content

Commit 7767f68

Browse files
committed
merged
2 parents ed9199e + 2a33dc2 commit 7767f68

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dlib/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

dlib/cmake_utils/use_cpp_11.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ if (CMAKE_VERSION VERSION_LESS "3.1.2")
6161
elseif( 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)
6666
elseif(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)")

0 commit comments

Comments
 (0)