diff options
author | Brad King <brad.king@kitware.com> | 2006-08-09 15:48:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-08-09 15:48:36 (GMT) |
commit | 00e0c5c8e6fe0428b5e24370d007df04850dacd9 (patch) | |
tree | 27fd1efa108bb97facfeb1b2058a0a93b2c19cfe | |
parent | dd37d0652f6e0d0355e5d81011ae2a97a045d2eb (diff) | |
download | CMake-00e0c5c8e6fe0428b5e24370d007df04850dacd9.zip CMake-00e0c5c8e6fe0428b5e24370d007df04850dacd9.tar.gz CMake-00e0c5c8e6fe0428b5e24370d007df04850dacd9.tar.bz2 |
ENH: Enabling preprocessed source and asembly source generation rules on Sun CC.
-rw-r--r-- | Modules/Platform/SunOS.cmake | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Modules/Platform/SunOS.cmake b/Modules/Platform/SunOS.cmake index 0d3f183..cd3579e 100644 --- a/Modules/Platform/SunOS.cmake +++ b/Modules/Platform/SunOS.cmake @@ -61,3 +61,13 @@ ELSE(CMAKE_COMPILER_IS_GNUCXX) ENDIF(CMAKE_CXX_COMPILER) ENDIF(CMAKE_COMPILER_IS_GNUCXX) 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> -o <ASSEMBLY_SOURCE>") +ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX) |