diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-12-17 17:04:15 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-12-17 17:04:15 (GMT) |
commit | 9eb207aa89256f30947feb031717050aa5a16aae (patch) | |
tree | 20b8cd31619e69b109812d9930d09d0c6973a9f5 /Modules/CMakeCInformation.cmake | |
parent | 8506938407722306adeccf12b407a8e8d92a90a6 (diff) | |
download | CMake-9eb207aa89256f30947feb031717050aa5a16aae.zip CMake-9eb207aa89256f30947feb031717050aa5a16aae.tar.gz CMake-9eb207aa89256f30947feb031717050aa5a16aae.tar.bz2 |
BUG: fix for bug 6167 get rid of extra space in flags
Diffstat (limited to 'Modules/CMakeCInformation.cmake')
-rw-r--r-- | Modules/CMakeCInformation.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/CMakeCInformation.cmake b/Modules/CMakeCInformation.cmake index fec8389..543c396 100644 --- a/Modules/CMakeCInformation.cmake +++ b/Modules/CMakeCInformation.cmake @@ -62,8 +62,11 @@ IF(NOT CMAKE_MODULE_EXISTS) SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS ${CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS}) ENDIF(NOT CMAKE_MODULE_EXISTS) -SET (CMAKE_C_FLAGS "$ENV{CFLAGS} ${CMAKE_C_FLAGS_INIT}" CACHE STRING +SET (CMAKE_C_FLAGS "$ENV{CFLAGS}" CACHE STRING "Flags for C compiler.") +IF (CMAKE_C_FLAGS_INIT) + SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_INIT}") +ENDIF (CMAKE_C_FLAGS_INIT) IF(NOT CMAKE_NOT_USING_CONFIG_FLAGS) # default build type is none |