summaryrefslogtreecommitdiffstats
path: root/Modules/GenerateExportHeader.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2011-08-15 23:17:26 (GMT)
committerStephen Kelly <steveire@gmail.com>2011-08-15 23:17:26 (GMT)
commitf84c7db5928dcb4a46c3f8d51d910e4ad4367113 (patch)
treed5ddbd177be725b408c1bd73dc47a0bbd4d95959 /Modules/GenerateExportHeader.cmake
parent9672b332b15a0ba66b929e28fdac2f5d854d9b99 (diff)
downloadCMake-f84c7db5928dcb4a46c3f8d51d910e4ad4367113.zip
CMake-f84c7db5928dcb4a46c3f8d51d910e4ad4367113.tar.gz
CMake-f84c7db5928dcb4a46c3f8d51d910e4ad4367113.tar.bz2
Don't enable deprecated on old GCC
Hopefully a fix for http://www.cdash.org/CDash/testDetails.php?test=109688480&build=1432057
Diffstat (limited to 'Modules/GenerateExportHeader.cmake')
-rw-r--r--Modules/GenerateExportHeader.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/GenerateExportHeader.cmake b/Modules/GenerateExportHeader.cmake
index c15a5be..f3a1836 100644
--- a/Modules/GenerateExportHeader.cmake
+++ b/Modules/GenerateExportHeader.cmake
@@ -158,7 +158,7 @@ macro(_test_compiler_hidden_visibility)
endmacro()
macro(_test_compiler_has_deprecated)
- if("${CMAKE_CXX_COMPILER_ID}" MATCHES Borland OR "${CMAKE_CXX_COMPILER_ID}" MATCHES HP)
+ if("${CMAKE_CXX_COMPILER_ID}" MATCHES Borland OR "${CMAKE_CXX_COMPILER_ID}" MATCHES HP OR GCC_TOO_OLD)
set(COMPILER_HAS_DEPRECATED "" CACHE INTERNAL "Compiler support for a deprecated attribute")
else()
_check_cxx_compiler_attribute("__attribute__((__deprecated__))" COMPILER_HAS_DEPRECATED_ATTR)