summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeSystemSpecificInformation.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-11-15 14:16:34 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-11-15 14:16:34 (GMT)
commitc652215ca88ce4b66b3dbaa1476e11cbc826a2ee (patch)
tree9fcc66285808f993c439f3e6a801db58a5a1beb0 /Modules/CMakeSystemSpecificInformation.cmake
parenta96940d7b2d3e89cc01312e7a650c6955cf59c97 (diff)
downloadCMake-c652215ca88ce4b66b3dbaa1476e11cbc826a2ee.zip
CMake-c652215ca88ce4b66b3dbaa1476e11cbc826a2ee.tar.gz
CMake-c652215ca88ce4b66b3dbaa1476e11cbc826a2ee.tar.bz2
ENH: add CFLAGS and CXXFLAGS
Diffstat (limited to 'Modules/CMakeSystemSpecificInformation.cmake')
-rw-r--r--Modules/CMakeSystemSpecificInformation.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CMakeSystemSpecificInformation.cmake b/Modules/CMakeSystemSpecificInformation.cmake
index b0d7a27..31efe07 100644
--- a/Modules/CMakeSystemSpecificInformation.cmake
+++ b/Modules/CMakeSystemSpecificInformation.cmake
@@ -148,7 +148,7 @@ SET (CMAKE_BUILD_TYPE "" CACHE STRING
# 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_INIT}" CACHE STRING
+SET (CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} ${CMAKE_CXX_FLAGS_INIT}" CACHE STRING
"Flags used by the compiler during all build types.")
SET (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG_INIT}" CACHE STRING
"Flags used by the compiler during debug builds.")
@@ -160,7 +160,7 @@ SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT}" CAC
"Flags used by the compiler during Release with Debug Info builds.")
SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS_INIT}" CACHE STRING
"Flags for C compiler.")
-SET (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG_INIT}" CACHE STRING
+SET (CMAKE_C_FLAGS_DEBUG "$ENV{CFLAGS} ${CMAKE_C_FLAGS_DEBUG_INIT}" CACHE STRING
"Flags used by the compiler during debug builds.")
SET (CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL_INIT}" CACHE STRING
"Flags used by the compiler during release minsize builds.")