CMake/Tests/RunCMake/CompileFeatures/RequireCXX11ExtVariable.cmake

5 lines
116 B
CMake
Raw Permalink Normal View History

set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
add_library(foo empty.cpp)
set_property(TARGET foo PROPERTY CXX_STANDARD 11)