Explorar o código

Don't enable deprecated on HP.

Stephen Kelly %!s(int64=14) %!d(string=hai) anos
pai
achega
9672b332b1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
+  if("${CMAKE_CXX_COMPILER_ID}" MATCHES Borland OR "${CMAKE_CXX_COMPILER_ID}" MATCHES HP)
     set(COMPILER_HAS_DEPRECATED "" CACHE INTERNAL "Compiler support for a deprecated attribute")
   else()
     _check_cxx_compiler_attribute("__attribute__((__deprecated__))" COMPILER_HAS_DEPRECATED_ATTR)