summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Windows-cl.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-11-09 18:43:16 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-11-09 18:43:16 (GMT)
commitac481e0ee96554945bca25bde70e3d2e43d0c73b (patch)
tree7bd8777fbc295afff9a7b9f13de81f08ee058fe5 /Modules/Platform/Windows-cl.cmake
parent1ccd1efe3e7c7147f25549ca90c4a58f9f153d6a (diff)
downloadCMake-ac481e0ee96554945bca25bde70e3d2e43d0c73b.zip
CMake-ac481e0ee96554945bca25bde70e3d2e43d0c73b.tar.gz
CMake-ac481e0ee96554945bca25bde70e3d2e43d0c73b.tar.bz2
fix for cxxflags
Diffstat (limited to 'Modules/Platform/Windows-cl.cmake')
-rw-r--r--Modules/Platform/Windows-cl.cmake15
1 files changed, 9 insertions, 6 deletions
diff --git a/Modules/Platform/Windows-cl.cmake b/Modules/Platform/Windows-cl.cmake
index 0881bf4..ea33cb5 100644
--- a/Modules/Platform/Windows-cl.cmake
+++ b/Modules/Platform/Windows-cl.cmake
@@ -42,12 +42,15 @@ SET (CMAKE_BUILD_TYPE Debug CACHE STRING
SET(CMAKE_CREATE_WIN32_EXE /subsystem:windows)
-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")
+IF(NOT CMAKE_CXX_FLAGS)
+ 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")
+ENDIF(NOT CMAKE_CXX_FLAGS)
+
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.")