diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2014-03-27 22:30:23 +0100 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-04-04 13:31:28 -0400 |
commit | be53734d3c3d5e74ea2d119e4c15c66121283bca (patch) | |
tree | a85f10f61190684748492411b8040fa925a3c9af /CompileFlags.cmake | |
parent | f4b9c6bbebb0757db2b87efd2239a8eb44d24092 (diff) | |
download | cmake-be53734d3c3d5e74ea2d119e4c15c66121283bca.tar.gz |
CompileFlags: Add -AA +hpxstd98 on HP-UX 11.11 with aCC
These flags are needed to enable support for C++98. Also teach the
'bootstrap' script to add them if necessary.
Diffstat (limited to 'CompileFlags.cmake')
-rw-r--r-- | CompileFlags.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CompileFlags.cmake b/CompileFlags.cmake index 332d742b2e..873af8f692 100644 --- a/CompileFlags.cmake +++ b/CompileFlags.cmake @@ -53,6 +53,14 @@ if(CMAKE_SYSTEM MATCHES "OSF1-V.*") endif() endif() +if(CMAKE_SYSTEM_NAME MATCHES "HP-UX" AND CMAKE_CXX_COMPILER_ID MATCHES "HP") + # it is known that version 3.85 fails and 6.25 works without these flags + if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4) + # use new C++ library and improved template support + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -AA +hpxstd98") + endif() +endif() + # use the ansi CXX compile flag for building cmake if (CMAKE_ANSI_CXXFLAGS) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_ANSI_CXXFLAGS}") |