summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/GNU-CXX-FeatureTests.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-10-21 14:59:40 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-05-09 12:39:30 (GMT)
commitf5bf9d431166250257d4ff2716f74668b1fce16b (patch)
tree37089da7f067ecaf777454cf9fc8c79a029c0bd7 /Modules/Compiler/GNU-CXX-FeatureTests.cmake
parent3547a00d77a5a894a2d9133ac61a6c9ed3dda5e2 (diff)
downloadCMake-f5bf9d431166250257d4ff2716f74668b1fce16b.zip
CMake-f5bf9d431166250257d4ff2716f74668b1fce16b.tar.gz
CMake-f5bf9d431166250257d4ff2716f74668b1fce16b.tar.bz2
Tests: Make CompileFeature tests use highest standard known.
Remove the use of check_cxx_source_compiles which is now just getting in the way. Blacklist the cxx_alignof feature in the test with GNU 4.7. The test file compiles, but it is documented as available first in GNU 4.8.
Diffstat (limited to 'Modules/Compiler/GNU-CXX-FeatureTests.cmake')
-rw-r--r--Modules/Compiler/GNU-CXX-FeatureTests.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Compiler/GNU-CXX-FeatureTests.cmake b/Modules/Compiler/GNU-CXX-FeatureTests.cmake
index 5edb69e..0694927 100644
--- a/Modules/Compiler/GNU-CXX-FeatureTests.cmake
+++ b/Modules/Compiler/GNU-CXX-FeatureTests.cmake
@@ -8,6 +8,8 @@ set(_cmake_feature_test_cxx_decltype_incomplete_return_types "${GNU481_CXX11}")
set(_cmake_feature_test_cxx_reference_qualified_functions "${GNU481_CXX11}")
set(GNU48_CXX11 "(__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L")
set(_cmake_feature_test_cxx_alignas "${GNU48_CXX11}")
+# The alignof feature works with GNU 4.7 and -std=c++11, but it is documented
+# as available with GNU 4.8, so treat that as true.
set(_cmake_feature_test_cxx_alignof "${GNU48_CXX11}")
set(_cmake_feature_test_cxx_attributes "${GNU48_CXX11}")
set(_cmake_feature_test_cxx_inheriting_constructors "${GNU48_CXX11}")