diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-07-20 15:44:55 -0400 |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-07-20 15:44:55 -0400 |
commit | b8b298104b18486e65fd40ae410a327d9e6fe8f3 (patch) | |
tree | d447d9b5cbf635545721fd27046e9520e02f0a4b /Modules/CMakeCXXInformation.cmake | |
parent | ff250565a2316b6bd639fba2db1c8180a8f590db (diff) | |
download | cmake-b8b298104b18486e65fd40ae410a327d9e6fe8f3.tar.gz |
ENH: make sure flags set in CC or CXX environment variables stay with the compiler
Diffstat (limited to 'Modules/CMakeCXXInformation.cmake')
-rw-r--r-- | Modules/CMakeCXXInformation.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeCXXInformation.cmake b/Modules/CMakeCXXInformation.cmake index eefc5f80a6..384e6beef9 100644 --- a/Modules/CMakeCXXInformation.cmake +++ b/Modules/CMakeCXXInformation.cmake @@ -74,7 +74,7 @@ ENDIF(NOT CMAKE_SHARED_MODULE_RUNTIME_CXX_FLAG_SEP) # on the initial values computed in the platform/*.cmake files # use _INIT variables so that this only happens the first time # and you can set these flags in the cmake cache -SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_ENV_INIT} $ENV{CXXFLAGS} ${CMAKE_CXX_FLAGS_INIT}" CACHE STRING +SET (CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} ${CMAKE_CXX_FLAGS_INIT}" CACHE STRING "Flags used by the compiler during all build types.") |