diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-11-09 18:43:16 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-11-09 18:43:16 (GMT) |
commit | ac481e0ee96554945bca25bde70e3d2e43d0c73b (patch) | |
tree | 7bd8777fbc295afff9a7b9f13de81f08ee058fe5 /Modules/Platform/Windows-bcc32.cmake | |
parent | 1ccd1efe3e7c7147f25549ca90c4a58f9f153d6a (diff) | |
download | CMake-ac481e0ee96554945bca25bde70e3d2e43d0c73b.zip CMake-ac481e0ee96554945bca25bde70e3d2e43d0c73b.tar.gz CMake-ac481e0ee96554945bca25bde70e3d2e43d0c73b.tar.bz2 |
fix for cxxflags
Diffstat (limited to 'Modules/Platform/Windows-bcc32.cmake')
-rw-r--r-- | Modules/Platform/Windows-bcc32.cmake | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Modules/Platform/Windows-bcc32.cmake b/Modules/Platform/Windows-bcc32.cmake index 4b2028f..aacbec5 100644 --- a/Modules/Platform/Windows-bcc32.cmake +++ b/Modules/Platform/Windows-bcc32.cmake @@ -49,12 +49,15 @@ SET(CMAKE_CREATE_WIN32_EXE -tW -tWM ) # extra flags for a console app SET(CMAKE_CREATE_CONSOLE_EXE -tWC ) -SET (CMAKE_CXX_FLAGS "-w- -whid -waus -wpar -tWM -P") -SET (CMAKE_CXX_FLAGS_DEBUG "-Od -v") -SET (CMAKE_CXX_FLAGS_MINSIZEREL "-O1") -SET (CMAKE_CXX_FLAGS_RELEASE "-O2") -SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-Od") -SET (CMAKE_C_FLAGS "-w- -whid -waus -tWM") +IF(NOT CMAKE_CXX_FLAGS) + SET (CMAKE_CXX_FLAGS "-w- -whid -waus -wpar -tWM -P") + SET (CMAKE_CXX_FLAGS_DEBUG "-Od -v") + SET (CMAKE_CXX_FLAGS_MINSIZEREL "-O1") + SET (CMAKE_CXX_FLAGS_RELEASE "-O2") + SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-Od") + SET (CMAKE_C_FLAGS "-w- -whid -waus -tWM") +ENDIF(NOT CMAKE_CXX_FLAGS) + SET (CMAKE_STANDARD_LIBRARIES "import32.lib" CACHE STRING "Libraries linked by defalut with all applications.") |