|
@@ -1,22 +1,22 @@
|
|
################################################################################
|
|
################################################################################
|
|
|
|
|
|
if(NOT (${CMAKE_VERSION} VERSION_LESS "3.8.0"))
|
|
if(NOT (${CMAKE_VERSION} VERSION_LESS "3.8.0"))
|
|
- # For CMake 3.8 and above, we can use meta features directly provided by CMake itself
|
|
|
|
- set(CXX11_FEATURES cxx_std_11)
|
|
|
|
- set(CXX14_FEATURES cxx_std_14)
|
|
|
|
- set(CXX17_FEATURES cxx_std_17)
|
|
|
|
- return()
|
|
|
|
|
|
+ # For CMake 3.8 and above, we can use meta features directly provided by CMake itself
|
|
|
|
+ set(CXX11_FEATURES cxx_std_11)
|
|
|
|
+ set(CXX14_FEATURES cxx_std_14)
|
|
|
|
+ set(CXX17_FEATURES cxx_std_17)
|
|
|
|
+ return()
|
|
endif()
|
|
endif()
|
|
|
|
|
|
################################################################################
|
|
################################################################################
|
|
|
|
|
|
set(CXX11_FEATURES
|
|
set(CXX11_FEATURES
|
|
- cxx_auto_type
|
|
|
|
- cxx_constexpr
|
|
|
|
|
|
+ cxx_auto_type
|
|
|
|
+ cxx_constexpr
|
|
)
|
|
)
|
|
|
|
|
|
set(CXX14_FEATURES
|
|
set(CXX14_FEATURES
|
|
- cxx_generic_lambdas
|
|
|
|
|
|
+ cxx_generic_lambdas
|
|
)
|
|
)
|
|
|
|
|
|
set(CXX17_FEATURES
|
|
set(CXX17_FEATURES
|