CMake/Tests/RunCMake/CompileFeatures/NoSupportedCxxFeatures.cmake
Stephen Kelly 8d0b1ccac1 Features: FATAL_ERROR on compilers with no recorded features.
Users of the new target_compile_features command are expected to
check the existence of the CMAKE_CXX_COMPILE_FEATURES variable before
attempting to use it to require features.
2014-04-17 16:20:50 +02:00

4 lines
95 B
CMake

add_library(no_features empty.cpp)
target_compile_features(no_features PRIVATE cxx_constexpr)