diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-06-18 12:42:51 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-06-18 12:42:51 (GMT) |
commit | 7a977df5669150d4f61489d6bf803d65cf791c71 (patch) | |
tree | 20a32a7fd2be6196fc718e481d2d3b9ddb81da04 /Modules/FindKDE3.cmake | |
parent | 858b221c326dd3fa96edb9ec9a471a324c30ff76 (diff) | |
download | CMake-7a977df5669150d4f61489d6bf803d65cf791c71.zip CMake-7a977df5669150d4f61489d6bf803d65cf791c71.tar.gz CMake-7a977df5669150d4f61489d6bf803d65cf791c71.tar.bz2 |
ENH: try to module run test
Diffstat (limited to 'Modules/FindKDE3.cmake')
-rw-r--r-- | Modules/FindKDE3.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindKDE3.cmake b/Modules/FindKDE3.cmake index 721f24d..aeba824 100644 --- a/Modules/FindKDE3.cmake +++ b/Modules/FindKDE3.cmake @@ -97,10 +97,10 @@ IF (CMAKE_SYSTEM_NAME MATCHES BSD AND CMAKE_COMPILER_IS_GNUCXX) ENDIF (CMAKE_SYSTEM_NAME MATCHES BSD AND CMAKE_COMPILER_IS_GNUCXX) # if no special buildtype is selected, add -O2 as default optimization -IF (NOT CMAKE_BUILD_TYPE) +IF (NOT CMAKE_BUILD_TYPE AND CMAKE_COMPILER_IS_GNUCXX) SET ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2") SET ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2") -ENDIF (NOT CMAKE_BUILD_TYPE) +ENDIF (NOT CMAKE_BUILD_TYPE AND CMAKE_COMPILER_IS_GNUCXX) #SET(CMAKE_SHARED_LINKER_FLAGS "-avoid-version -module -Wl,--no-undefined -Wl,--allow-shlib-undefined") |