We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2763f04 commit 34248c0Copy full SHA for 34248c0
cmake/SetCXXStandard.cmake
@@ -1,6 +1,11 @@
1
2
+find_package(Boost 1.56.0 REQUIRED)
3
+if(Boost_VERSION VERSION_LESS "1.72.0")
4
+ set(CMAKE_CXX_STANDARD 11 CACHE INTERNAL "specifies the C++ standard whose features are requested to build this target")
5
+else()
6
+ set(CMAKE_CXX_STANDARD 14 CACHE INTERNAL "specifies the C++ standard whose features are requested to build this target")
7
+endif()
8
-set(CMAKE_CXX_STANDARD 11 CACHE INTERNAL "specifies the C++ standard whose features are requested to build this target")
9
set(CMAKE_CXX_STANDARD_REQUIRED ON)
10
if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
11
### Even though CMAKE_CXX_STANDARD_REQUIRED is supported since CMake 3.1, it doesn't work for Emscripten em++ together with
0 commit comments