File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 11
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 ()
28
3- set (CMAKE_CXX_STANDARD 11 CACHE INTERNAL "specifies the C++ standard whose features are requested to build this target" )
49set (CMAKE_CXX_STANDARD_REQUIRED ON )
510if (NOT "${CMAKE_CXX_COMPILER_ID} " STREQUAL "MSVC" )
611 ### Even though CMAKE_CXX_STANDARD_REQUIRED is supported since CMake 3.1, it doesn't work for Emscripten em++ together with
712 ### Cmake 3.6.
8- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu ++${CMAKE_CXX_STANDARD} " )
13+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c ++${CMAKE_CXX_STANDARD} " )
914endif ()
You can’t perform that action at this time.
0 commit comments