CMake/Tests/RunCMake/CompileFeatures/RequireCXX11.cmake

6 lines
194 B
CMake

add_library(foo empty.cpp)
set_property(TARGET foo PROPERTY CXX_STANDARD 11)
set_property(TARGET foo PROPERTY CXX_EXTENSIONS FALSE)
set_property(TARGET foo PROPERTY CXX_STANDARD_REQUIRED TRUE)