summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CompileFeatures/RequireCXX11Variable.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-05-30 13:03:45 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-05-31 10:16:12 (GMT)
commit60a981ea8eda7a5af679ca3b2e4d54bc50ad61b3 (patch)
treef2344920e6c0358ca970ec70302a79e2dbc58f43 /Tests/RunCMake/CompileFeatures/RequireCXX11Variable.cmake
parent8afbb346c67c60dcf9383f5e58307d629eafb855 (diff)
downloadCMake-60a981ea8eda7a5af679ca3b2e4d54bc50ad61b3.zip
CMake-60a981ea8eda7a5af679ca3b2e4d54bc50ad61b3.tar.gz
CMake-60a981ea8eda7a5af679ca3b2e4d54bc50ad61b3.tar.bz2
Features: Enable compiler extensions by default.
Compilers enable their extensions by default, and disabling them implicitly can lead to results which are surprising or non-obvious to debug. http://public.kitware.com/pipermail/cmake-developers/2014-May/010575.html http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/10214 https://www.mail-archive.com/cmake-developers@cmake.org/msg10116.html (Compiler feature extensions by default, 29 May 2014)
Diffstat (limited to 'Tests/RunCMake/CompileFeatures/RequireCXX11Variable.cmake')
-rw-r--r--Tests/RunCMake/CompileFeatures/RequireCXX11Variable.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/CompileFeatures/RequireCXX11Variable.cmake b/Tests/RunCMake/CompileFeatures/RequireCXX11Variable.cmake
index 29703db..c480997 100644
--- a/Tests/RunCMake/CompileFeatures/RequireCXX11Variable.cmake
+++ b/Tests/RunCMake/CompileFeatures/RequireCXX11Variable.cmake
@@ -2,3 +2,4 @@
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
add_library(foo empty.cpp)
set_property(TARGET foo PROPERTY CXX_STANDARD 11)
+set_property(TARGET foo PROPERTY CXX_EXTENSIONS FALSE)