diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-07-20 19:44:55 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-07-20 19:44:55 (GMT) |
commit | b8b298104b18486e65fd40ae410a327d9e6fe8f3 (patch) | |
tree | d447d9b5cbf635545721fd27046e9520e02f0a4b /Modules/CMakeCInformation.cmake | |
parent | ff250565a2316b6bd639fba2db1c8180a8f590db (diff) | |
download | CMake-b8b298104b18486e65fd40ae410a327d9e6fe8f3.zip CMake-b8b298104b18486e65fd40ae410a327d9e6fe8f3.tar.gz CMake-b8b298104b18486e65fd40ae410a327d9e6fe8f3.tar.bz2 |
ENH: make sure flags set in CC or CXX environment variables stay with the compiler
Diffstat (limited to 'Modules/CMakeCInformation.cmake')
-rw-r--r-- | Modules/CMakeCInformation.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeCInformation.cmake b/Modules/CMakeCInformation.cmake index c8d8e06..cca45b7 100644 --- a/Modules/CMakeCInformation.cmake +++ b/Modules/CMakeCInformation.cmake @@ -18,7 +18,7 @@ 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 "${CMAKE_C_FLAGS_ENV_INIT} $ENV{CFLAGS} ${CMAKE_C_FLAGS_INIT}" CACHE STRING +SET (CMAKE_C_FLAGS "$ENV{CFLAGS} ${CMAKE_C_FLAGS_INIT}" CACHE STRING "Flags for C compiler.") IF(NOT CMAKE_NOT_USING_CONFIG_FLAGS) |