diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-11-10 15:02:52 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-11-10 15:02:52 (GMT) |
commit | 538f38596fbd788248aafbf94bcee12897e21277 (patch) | |
tree | a6bc193177850bff4019bcc17e3b10b48fa75367 /Modules | |
parent | ac481e0ee96554945bca25bde70e3d2e43d0c73b (diff) | |
download | CMake-538f38596fbd788248aafbf94bcee12897e21277.zip CMake-538f38596fbd788248aafbf94bcee12897e21277.tar.gz CMake-538f38596fbd788248aafbf94bcee12897e21277.tar.bz2 |
BUG: fix setting of c flags
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Platform/HP-UX.cmake | 4 | ||||
-rw-r--r-- | Modules/Platform/IRIX.cmake | 4 | ||||
-rw-r--r-- | Modules/Platform/IRIX64.cmake | 4 | ||||
-rw-r--r-- | Modules/Platform/Windows-bcc32.cmake | 4 | ||||
-rw-r--r-- | Modules/Platform/Windows-cl.cmake | 4 | ||||
-rw-r--r-- | Modules/Platform/gcc.cmake | 5 |
6 files changed, 19 insertions, 6 deletions
diff --git a/Modules/Platform/HP-UX.cmake b/Modules/Platform/HP-UX.cmake index 14f22b3..24f9441 100644 --- a/Modules/Platform/HP-UX.cmake +++ b/Modules/Platform/HP-UX.cmake @@ -47,6 +47,8 @@ ELSE(CMAKE_COMPILER_IS_GNUCXX) SET (CMAKE_CXX_FLAGS_MINSIZEREL "-O3") SET (CMAKE_CXX_FLAGS_RELEASE "-O2") SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-g") - SET (CMAKE_C_FLAGS "") ENDIF(NOT CMAKE_CXX_FLAGS) + IF(NOT CMAKE_C_FLAGS) + SET (CMAKE_C_FLAGS "") + ENDIF(NOT CMAKE_C_FLAGS) ENDIF(CMAKE_COMPILER_IS_GNUCXX) diff --git a/Modules/Platform/IRIX.cmake b/Modules/Platform/IRIX.cmake index 9117a74..2df5dad 100644 --- a/Modules/Platform/IRIX.cmake +++ b/Modules/Platform/IRIX.cmake @@ -12,8 +12,10 @@ IF(NOT CMAKE_COMPILER_IS_GNUCXX) SET (CMAKE_CXX_FLAGS_MINSIZEREL "-O3") SET (CMAKE_CXX_FLAGS_RELEASE "-O2") SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2") - SET (CMAKE_C_FLAGS "") ENDIF(NOT CMAKE_CXX_FLAGS) + IF(NOT CMAKE_C_FLAGS) + SET (CMAKE_C_FLAGS "") + ENDIF(NOT CMAKE_C_FLAGS) ELSE(NOT CMAKE_COMPILER_IS_GNUCXX) INCLUDE(${CMAKE_ROOT}/Modules/Platform/gcc.cmake) ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX) diff --git a/Modules/Platform/IRIX64.cmake b/Modules/Platform/IRIX64.cmake index 32654ae..aa5f1b8 100644 --- a/Modules/Platform/IRIX64.cmake +++ b/Modules/Platform/IRIX64.cmake @@ -13,8 +13,10 @@ IF(NOT CMAKE_COMPILER_IS_GNUCXX) SET (CMAKE_CXX_FLAGS_MINSIZEREL "-O3") SET (CMAKE_CXX_FLAGS_RELEASE "-O2") SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2") - SET (CMAKE_C_FLAGS "") ENDIF(NOT CMAKE_CXX_FLAGS) + IF(NOT CMAKE_C_FLAGS) + SET (CMAKE_C_FLAGS "") + ENDIF(NOT CMAKE_C_FLAGS) ELSE(NOT CMAKE_COMPILER_IS_GNUCXX) INCLUDE(${CMAKE_ROOT}/Modules/Platform/gcc.cmake) ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX) diff --git a/Modules/Platform/Windows-bcc32.cmake b/Modules/Platform/Windows-bcc32.cmake index aacbec5..4d1b19d 100644 --- a/Modules/Platform/Windows-bcc32.cmake +++ b/Modules/Platform/Windows-bcc32.cmake @@ -55,8 +55,10 @@ IF(NOT CMAKE_CXX_FLAGS) 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) +IF(NOT CMAKE_C_FLAGS) + SET (CMAKE_C_FLAGS "-w- -whid -waus -tWM") +ENDIF(NOT CMAKE_C_FLAGS) SET (CMAKE_STANDARD_LIBRARIES "import32.lib" CACHE STRING diff --git a/Modules/Platform/Windows-cl.cmake b/Modules/Platform/Windows-cl.cmake index ea33cb5..c1f975b 100644 --- a/Modules/Platform/Windows-cl.cmake +++ b/Modules/Platform/Windows-cl.cmake @@ -48,8 +48,10 @@ IF(NOT CMAKE_CXX_FLAGS) 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) +IF(NOT CMAKE_C_FLAGS) + SET (CMAKE_C_FLAGS "/nologo /W3 /Zm1000") +ENDIF(NOT CMAKE_C_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 diff --git a/Modules/Platform/gcc.cmake b/Modules/Platform/gcc.cmake index 54ad33a..c03b282 100644 --- a/Modules/Platform/gcc.cmake +++ b/Modules/Platform/gcc.cmake @@ -4,5 +4,8 @@ IF(NOT CMAKE_CXX_FLAGS) SET (CMAKE_CXX_FLAGS_MINSIZEREL "-O3") SET (CMAKE_CXX_FLAGS_RELEASE "-O2") SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g") - SET (CMAKE_C_FLAGS "") ENDIF(NOT CMAKE_CXX_FLAGS) + +IF(NOT CMAKE_C_FLAGS) + SET (CMAKE_C_FLAGS "") +ENDIF(NOT CMAKE_C_FLAGS) |