浏览代码

Don't enable deprecated on old GCC

Hopefully a fix for
http://www.cdash.org/CDash/testDetails.php?test=109688480&build=1432057
Stephen Kelly 14 年之前
父节点
当前提交
f84c7db592
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Modules/GenerateExportHeader.cmake

+ 1 - 1
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)