diff options
author | Brad King <brad.king@kitware.com> | 2008-02-27 19:31:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-02-27 19:31:09 (GMT) |
commit | e840a9dff31ef7682e698f78edc5c9e06f79834c (patch) | |
tree | 66b95ef2f75a74974eedc0664d1f2efcc9579a3a /Modules/Platform/gcc.cmake | |
parent | 883931056f8b8d11dfdb2fb9f91197b67695ace7 (diff) | |
download | CMake-e840a9dff31ef7682e698f78edc5c9e06f79834c.zip CMake-e840a9dff31ef7682e698f78edc5c9e06f79834c.tar.gz CMake-e840a9dff31ef7682e698f78edc5c9e06f79834c.tar.bz2 |
BUG: Apply patch from bug#6445. Add preprocessor definitions to assembly and preprocessing build rules.
Diffstat (limited to 'Modules/Platform/gcc.cmake')
-rw-r--r-- | Modules/Platform/gcc.cmake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/Platform/gcc.cmake b/Modules/Platform/gcc.cmake index 695a55f..8c385ce 100644 --- a/Modules/Platform/gcc.cmake +++ b/Modules/Platform/gcc.cmake @@ -5,8 +5,8 @@ IF(CMAKE_COMPILER_IS_GNUCC) SET (CMAKE_C_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG") SET (CMAKE_C_FLAGS_RELEASE_INIT "-O3 -DNDEBUG") SET (CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "-O2 -g") - 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>") + SET (CMAKE_C_CREATE_PREPROCESSED_SOURCE "<CMAKE_C_COMPILER> <DEFINES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>") + SET (CMAKE_C_CREATE_ASSEMBLY_SOURCE "<CMAKE_C_COMPILER> <DEFINES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>") IF(NOT APPLE) SET (CMAKE_INCLUDE_SYSTEM_FLAG_C "-isystem ") ENDIF(NOT APPLE) @@ -19,8 +19,8 @@ IF(CMAKE_COMPILER_IS_GNUCXX) SET (CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG") SET (CMAKE_CXX_FLAGS_RELEASE_INIT "-O3 -DNDEBUG") SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-O2 -g") - 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>") + 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> -o <ASSEMBLY_SOURCE>") IF(NOT APPLE) SET (CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-isystem ") ENDIF(NOT APPLE) |