|
|
@@ -62,6 +62,14 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL SunPro)
|
|
|
)
|
|
|
endif()
|
|
|
|
|
|
+if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
|
|
|
+ AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.6)
|
|
|
+ # The cxx_constexpr feature happens to work (for *this* testcase) with
|
|
|
+ # GNU 4.5, but it is first documented as available with GNU 4.6.
|
|
|
+ list(REMOVE_ITEM CXX_non_features
|
|
|
+ cxx_constexpr
|
|
|
+ )
|
|
|
+endif()
|
|
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
|
|
|
AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.8)
|
|
|
# The cxx_alignof feature happens to work (for *this* testcase) with
|
|
|
@@ -212,7 +220,7 @@ if (CMAKE_CXX_COMPILE_FEATURES)
|
|
|
set_property(TARGET CompileFeaturesGenex PROPERTY CXX_STANDARD 11)
|
|
|
target_compile_definitions(CompileFeaturesGenex PRIVATE
|
|
|
HAVE_OVERRIDE_CONTROL=$<COMPILE_FEATURES:cxx_final,cxx_override>
|
|
|
- HAVE_NULLPTR=$<COMPILE_FEATURES:cxx_nullptr>
|
|
|
+ HAVE_AUTO_TYPE=$<COMPILE_FEATURES:cxx_auto_type>
|
|
|
HAVE_INHERITING_CONSTRUCTORS=$<COMPILE_FEATURES:cxx_inheriting_constructors>
|
|
|
HAVE_FINAL=$<COMPILE_FEATURES:cxx_final>
|
|
|
HAVE_INHERITING_CONSTRUCTORS_AND_FINAL=$<COMPILE_FEATURES:cxx_inheriting_constructors,cxx_final>
|
|
|
@@ -222,7 +230,7 @@ if (CMAKE_CXX_COMPILE_FEATURES)
|
|
|
target_compile_features(CompileFeaturesGenex2 PRIVATE cxx_static_assert)
|
|
|
target_compile_definitions(CompileFeaturesGenex2 PRIVATE
|
|
|
HAVE_OVERRIDE_CONTROL=$<COMPILE_FEATURES:cxx_final,cxx_override>
|
|
|
- HAVE_NULLPTR=$<COMPILE_FEATURES:cxx_nullptr>
|
|
|
+ HAVE_AUTO_TYPE=$<COMPILE_FEATURES:cxx_auto_type>
|
|
|
HAVE_INHERITING_CONSTRUCTORS=$<COMPILE_FEATURES:cxx_inheriting_constructors>
|
|
|
HAVE_FINAL=$<COMPILE_FEATURES:cxx_final>
|
|
|
HAVE_INHERITING_CONSTRUCTORS_AND_FINAL=$<COMPILE_FEATURES:cxx_inheriting_constructors,cxx_final>
|
|
|
@@ -234,7 +242,7 @@ if (CMAKE_CXX_COMPILE_FEATURES)
|
|
|
target_link_libraries(CompileFeaturesGenex3 PRIVATE static_assert_iface)
|
|
|
target_compile_definitions(CompileFeaturesGenex3 PRIVATE
|
|
|
HAVE_OVERRIDE_CONTROL=$<COMPILE_FEATURES:cxx_final,cxx_override>
|
|
|
- HAVE_NULLPTR=$<COMPILE_FEATURES:cxx_nullptr>
|
|
|
+ HAVE_AUTO_TYPE=$<COMPILE_FEATURES:cxx_auto_type>
|
|
|
HAVE_INHERITING_CONSTRUCTORS=$<COMPILE_FEATURES:cxx_inheriting_constructors>
|
|
|
HAVE_FINAL=$<COMPILE_FEATURES:cxx_final>
|
|
|
HAVE_INHERITING_CONSTRUCTORS_AND_FINAL=$<COMPILE_FEATURES:cxx_inheriting_constructors,cxx_final>
|