summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Windows-cl.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-11-08 23:06:53 (GMT)
committerBrad King <brad.king@kitware.com>2002-11-08 23:06:53 (GMT)
commit3a6d52f4c5a2cf7bb0fd0ec0e46cf1802d82c77b (patch)
tree88bd3a8bd7c60b350b8f706f46a6d6f82b5e2088 /Modules/Platform/Windows-cl.cmake
parentc74ce9b21852bfd93d7d13ba70e11967b94a8300 (diff)
downloadCMake-3a6d52f4c5a2cf7bb0fd0ec0e46cf1802d82c77b.zip
CMake-3a6d52f4c5a2cf7bb0fd0ec0e46cf1802d82c77b.tar.gz
CMake-3a6d52f4c5a2cf7bb0fd0ec0e46cf1802d82c77b.tar.bz2
ENH: Moved caching of C*_FLAGS* settings down to CMakeSystemSpecificInformation.cmake. The platform files can set the defaults on the first run, and then the settings are cached at the end.
Diffstat (limited to 'Modules/Platform/Windows-cl.cmake')
-rw-r--r--Modules/Platform/Windows-cl.cmake24
1 files changed, 6 insertions, 18 deletions
diff --git a/Modules/Platform/Windows-cl.cmake b/Modules/Platform/Windows-cl.cmake
index bf274fa..0881bf4 100644
--- a/Modules/Platform/Windows-cl.cmake
+++ b/Modules/Platform/Windows-cl.cmake
@@ -42,24 +42,12 @@ SET (CMAKE_BUILD_TYPE Debug CACHE STRING
SET(CMAKE_CREATE_WIN32_EXE /subsystem:windows)
-SET (CMAKE_CXX_FLAGS "/nologo /W3 /Zm1000 /GX /GR" CACHE STRING
- "Flags used by the compiler during all build types, /GX /GR are for exceptions and rtti in VC++, /Zm1000 increases the compiler's memory allocation to support ANSI C++/stdlib.")
-
-SET (CMAKE_CXX_FLAGS_DEBUG "/MDd /Zi /Od /GZ" CACHE STRING
- "Flags used by the compiler during debug builds.")
-
-SET (CMAKE_CXX_FLAGS_MINSIZEREL "/MD /O1" CACHE STRING
- "Flags used by the compiler during release minsize builds.")
-
-SET (CMAKE_CXX_FLAGS_RELEASE "/MD /O2" CACHE STRING
- "Flags used by the compiler during release builds (/MD /Ob1 /Oi /Ot /Oy /Gs will produce slightly less optimized but smaller files).")
-
-SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "/MD /Zi /O2" CACHE STRING
- "Flags used by the compiler during Release with Debug Info builds.")
-
-
-SET (CMAKE_C_FLAGS "/nologo /W3 /Zm1000" CACHE STRING
- "Flags for C compiler.")
+SET (CMAKE_CXX_FLAGS "/nologo /W3 /Zm1000 /GX /GR")
+SET (CMAKE_CXX_FLAGS_DEBUG "/MDd /Zi /Od /GZ")
+SET (CMAKE_CXX_FLAGS_MINSIZEREL "/MD /O1")
+SET (CMAKE_CXX_FLAGS_RELEASE "/MD /O2")
+SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "/MD /Zi /O2")
+SET (CMAKE_C_FLAGS "/nologo /W3 /Zm1000")
SET (CMAKE_STANDARD_LIBRARIES "kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib" CACHE STRING
"Libraries linked by defalut with all applications.")