summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-08-09 17:59:22 (GMT)
committerBrad King <brad.king@kitware.com>2006-08-09 17:59:22 (GMT)
commitcd3d44881fce040c4210ad7617014a109687b494 (patch)
treeef03add2c33bd097aa3d8f98d41d454630124b29 /Modules/Platform
parent8e6a9b2065d81a3313b14016bc2df231886904e2 (diff)
downloadCMake-cd3d44881fce040c4210ad7617014a109687b494.zip
CMake-cd3d44881fce040c4210ad7617014a109687b494.tar.gz
CMake-cd3d44881fce040c4210ad7617014a109687b494.tar.bz2
ENH: Enabling preprocessed source and asembly source generation rules on AIX compilers.
Diffstat (limited to 'Modules/Platform')
-rw-r--r--Modules/Platform/AIX.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/Modules/Platform/AIX.cmake b/Modules/Platform/AIX.cmake
index be02529..f1b3d03 100644
--- a/Modules/Platform/AIX.cmake
+++ b/Modules/Platform/AIX.cmake
@@ -31,3 +31,13 @@ ELSE(CMAKE_COMPILER_IS_GNUCC)
SET (CMAKE_C_FLAGS_MINSIZEREL_INIT "-O -DNDEBUG")
SET (CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "-g")
ENDIF(CMAKE_COMPILER_IS_GNUCC)
+
+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)