diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-04-30 16:07:38 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-05-07 10:17:49 (GMT) |
commit | 205215fb8a8aa950026d914377a54ae358a1c02a (patch) | |
tree | 2e847006ba3a5e19448058ff09ad6b496fe4b39b /Tests/RunCMake/CompileFeatures/RequireCXX11Ext.cmake | |
parent | 1df2116bfaa4c575404ae1eef225aed1530d668a (diff) | |
download | CMake-205215fb8a8aa950026d914377a54ae358a1c02a.zip CMake-205215fb8a8aa950026d914377a54ae358a1c02a.tar.gz CMake-205215fb8a8aa950026d914377a54ae358a1c02a.tar.bz2 |
cmTarget: Add CXX_STANDARD_REQUIRED to control decay.
Diffstat (limited to 'Tests/RunCMake/CompileFeatures/RequireCXX11Ext.cmake')
-rw-r--r-- | Tests/RunCMake/CompileFeatures/RequireCXX11Ext.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/CompileFeatures/RequireCXX11Ext.cmake b/Tests/RunCMake/CompileFeatures/RequireCXX11Ext.cmake new file mode 100644 index 0000000..9e726c8 --- /dev/null +++ b/Tests/RunCMake/CompileFeatures/RequireCXX11Ext.cmake @@ -0,0 +1,5 @@ + +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) |