diff options
author | Brad King <brad.king@kitware.com> | 2006-08-09 17:10:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-08-09 17:10:01 (GMT) |
commit | 3b99b5ede35dabcd78b4124772b1f00e853ce30d (patch) | |
tree | c4eb68fea071ad3abcf90fbc539f11daa3d5be70 | |
parent | 00e0c5c8e6fe0428b5e24370d007df04850dacd9 (diff) | |
download | CMake-3b99b5ede35dabcd78b4124772b1f00e853ce30d.zip CMake-3b99b5ede35dabcd78b4124772b1f00e853ce30d.tar.gz CMake-3b99b5ede35dabcd78b4124772b1f00e853ce30d.tar.bz2 |
ENH: Enabling preprocessed source and asembly source generation rules on HP aCC and cc.
-rw-r--r-- | Modules/Platform/HP-UX.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Modules/Platform/HP-UX.cmake b/Modules/Platform/HP-UX.cmake index 8c149ed..0bc3c3e 100644 --- a/Modules/Platform/HP-UX.cmake +++ b/Modules/Platform/HP-UX.cmake @@ -71,3 +71,17 @@ ELSE(CMAKE_COMPILER_IS_GNUCXX) ENDIF(CMAKE_COMPILER_IS_GNUCXX) # set flags for gcc support INCLUDE(Platform/UnixPaths) + +IF(NOT CMAKE_COMPILER_IS_GNUCC) + SET (CMAKE_C_CREATE_PREPROCESSED_SOURCE "<CMAKE_C_COMPILER> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>") + SET (CMAKE_C_CREATE_ASSEMBLY_SOURCE "<CMAKE_C_COMPILER> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>") +ENDIF(NOT CMAKE_COMPILER_IS_GNUCC) + +IF(NOT CMAKE_COMPILER_IS_GNUCXX) + SET (CMAKE_CXX_CREATE_PREPROCESSED_SOURCE "<CMAKE_CXX_COMPILER> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>") + SET (CMAKE_CXX_CREATE_ASSEMBLY_SOURCE + "<CMAKE_CXX_COMPILER> <FLAGS> -S <SOURCE>" + "mv `basename \"<SOURCE>\" | sed 's/\\.[^./]*$$//'`.s <ASSEMBLY_SOURCE>" + "rm -f `basename \"<SOURCE>\" | sed 's/\\.[^./]*$$//'`.o" + ) +ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX) |