summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/HP-UX-HP-CXX.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-03-02 22:24:36 (GMT)
committerBrad King <brad.king@kitware.com>2011-03-02 22:24:36 (GMT)
commit5f0a25955faaa40b65eba072bd4a87e40dd82297 (patch)
treeb295b0e7dfcbccd924fa5057622050c5d744845b /Modules/Platform/HP-UX-HP-CXX.cmake
parentf72cc88c659d586cc65ac47e7807054345ccad89 (diff)
downloadCMake-5f0a25955faaa40b65eba072bd4a87e40dd82297.zip
CMake-5f0a25955faaa40b65eba072bd4a87e40dd82297.tar.gz
CMake-5f0a25955faaa40b65eba072bd4a87e40dd82297.tar.bz2
Factor HP compiler flags into per-platform/per-compiler files
Move HP flags out of Platform/HP-UX.cmake into platform-specific compiler information files "Platform/HP-UX-HP-<lang>.cmake". Factor common values into "Platform/HP-UX-HP.cmake" and load it from the per-language files.
Diffstat (limited to 'Modules/Platform/HP-UX-HP-CXX.cmake')
-rw-r--r--Modules/Platform/HP-UX-HP-CXX.cmake16
1 files changed, 16 insertions, 0 deletions
diff --git a/Modules/Platform/HP-UX-HP-CXX.cmake b/Modules/Platform/HP-UX-HP-CXX.cmake
new file mode 100644
index 0000000..8f3c70c
--- /dev/null
+++ b/Modules/Platform/HP-UX-HP-CXX.cmake
@@ -0,0 +1,16 @@
+include(Platform/HP-UX-HP)
+__hpux_compiler_hp(CXX)
+
+set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "+Z -Wl,-E,+nodefaultrpath -b -L/usr/lib")
+
+set(CMAKE_CXX_CREATE_PREPROCESSED_SOURCE "<CMAKE_CXX_COMPILER> <DEFINES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
+set(CMAKE_CXX_CREATE_ASSEMBLY_SOURCE
+ "<CMAKE_CXX_COMPILER> <DEFINES> <FLAGS> -S <SOURCE>"
+ "mv `basename \"<SOURCE>\" | sed 's/\\.[^./]*$$//'`.s <ASSEMBLY_SOURCE>"
+ "rm -f `basename \"<SOURCE>\" | sed 's/\\.[^./]*$$//'`.o"
+ )
+
+set(CMAKE_CXX_FLAGS_DEBUG_INIT "-g")
+set(CMAKE_CXX_FLAGS_MINSIZEREL_INIT "+O3 -DNDEBUG")
+set(CMAKE_CXX_FLAGS_RELEASE_INIT "+O2 -DNDEBUG")
+set(CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-g")