summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/gcc.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-11-11 17:31:46 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-11-11 17:31:46 (GMT)
commitd1051bb575b2f1e568ac9fe4599a0bf0eea66392 (patch)
tree5c16ebb0dc8c21698c38333eca4f5058492953c0 /Modules/Platform/gcc.cmake
parent5b9a880bfbf215159d6960f82f0e78c419c95f8e (diff)
downloadCMake-d1051bb575b2f1e568ac9fe4599a0bf0eea66392.zip
CMake-d1051bb575b2f1e568ac9fe4599a0bf0eea66392.tar.gz
CMake-d1051bb575b2f1e568ac9fe4599a0bf0eea66392.tar.bz2
clean up flags with _init flags
Diffstat (limited to 'Modules/Platform/gcc.cmake')
-rw-r--r--Modules/Platform/gcc.cmake17
1 files changed, 6 insertions, 11 deletions
diff --git a/Modules/Platform/gcc.cmake b/Modules/Platform/gcc.cmake
index c03b282..0029d2e 100644
--- a/Modules/Platform/gcc.cmake
+++ b/Modules/Platform/gcc.cmake
@@ -1,11 +1,6 @@
-IF(NOT CMAKE_CXX_FLAGS)
- SET (CMAKE_CXX_FLAGS "")
- SET (CMAKE_CXX_FLAGS_DEBUG "-g")
- SET (CMAKE_CXX_FLAGS_MINSIZEREL "-O3")
- SET (CMAKE_CXX_FLAGS_RELEASE "-O2")
- SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g")
-ENDIF(NOT CMAKE_CXX_FLAGS)
-
-IF(NOT CMAKE_C_FLAGS)
- SET (CMAKE_C_FLAGS "")
-ENDIF(NOT CMAKE_C_FLAGS)
+SET (CMAKE_CXX_FLAGS_INIT "")
+SET (CMAKE_CXX_FLAGS_DEBUG_INIT "-g")
+SET (CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-O3")
+SET (CMAKE_CXX_FLAGS_RELEASE_INIT "-O2")
+SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-O2 -g")
+SET (CMAKE_C_FLAGS_INIT "")