summaryrefslogtreecommitdiffstats
path: root/Modules/GenerateExportHeader.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2011-08-15 23:13:10 (GMT)
committerStephen Kelly <steveire@gmail.com>2011-08-15 23:13:10 (GMT)
commit9672b332b15a0ba66b929e28fdac2f5d854d9b99 (patch)
treeebd3a6a0dcd6df704801af3acad7f54131e73593 /Modules/GenerateExportHeader.cmake
parent10d8c446d5893446eaf4bd6e295fb6ea0d83d7f4 (diff)
downloadCMake-9672b332b15a0ba66b929e28fdac2f5d854d9b99.zip
CMake-9672b332b15a0ba66b929e28fdac2f5d854d9b99.tar.gz
CMake-9672b332b15a0ba66b929e28fdac2f5d854d9b99.tar.bz2
Don't enable deprecated on HP.
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 758eb25..c15a5be 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)
+ 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)