summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CompileFeatures/RequireCXX98Variable.cmake
blob: 75622645b8965acf2b4bd78c4739c1545b0da359 (plain)
1
2
3
4
5

set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
add_library(foo empty.cpp)
set_property(TARGET foo PROPERTY CXX_STANDARD 98)
set_property(TARGET foo PROPERTY CXX_EXTENSIONS FALSE)