CMake/Tests/RunCMake/CompileFeatures/RequireCXX11Ext.cmake

6 lines
193 B
CMake
Raw Normal View History

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