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 1
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 ()
2
8
3
- set (CMAKE_CXX_STANDARD 11 CACHE INTERNAL "specifies the C++ standard whose features are requested to build this target" )
4
9
set (CMAKE_CXX_STANDARD_REQUIRED ON )
5
10
if (NOT "${CMAKE_CXX_COMPILER_ID} " STREQUAL "MSVC" )
6
11
### Even though CMAKE_CXX_STANDARD_REQUIRED is supported since CMake 3.1, it doesn't work for Emscripten em++ together with
7
12
### 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} " )
9
14
endif ()
You can’t perform that action at this time.
0 commit comments