We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17d4260 commit 6d709f0Copy full SHA for 6d709f0
CMakeLists.txt
@@ -59,15 +59,9 @@ if(MSVC)
59
message(STATUS "using msvc")
60
add_definitions(-D_WIN32_WINNT=0x600)
61
add_definitions(-DBOOST_UUID_RANDOM_PROVIDER_FORCE_WINCRYPT)
62
- if(MSVC_VERSION GREATER_EQUAL "1900")
63
- include(CheckCXXCompilerFlag)
64
- check_cxx_compiler_flag("/std:c++latest"
65
- _cpp_latest_flag_supported)
66
- if(_cpp_latest_flag_supported)
67
- add_compile_options("/std:c++latest")
68
- endif()
69
70
-else()
+endif()
+
+if(NOT CMAKE_CXX_STANDARD)
71
set(CMAKE_CXX_STANDARD 17)
72
set(CMAKE_CXX_EXTENSIONS OFF)
73
endif()
0 commit comments