summaryrefslogtreecommitdiffstats
path: root/Modules/FindKDE3.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2008-06-18 20:39:46 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2008-06-18 20:39:46 (GMT)
commit24e584f7a85404a5d0720af40c18d1369dd8d6c5 (patch)
tree0a39a79b28a4291da0be5b0f975055db524284b7 /Modules/FindKDE3.cmake
parent974feca643dd645aa6b5dda5c9a1841f7123ad9e (diff)
downloadCMake-24e584f7a85404a5d0720af40c18d1369dd8d6c5.zip
CMake-24e584f7a85404a5d0720af40c18d1369dd8d6c5.tar.gz
CMake-24e584f7a85404a5d0720af40c18d1369dd8d6c5.tar.bz2
BUG: the variable is _KDE4_USE_FLAGS
ENH: I guess this is also true for gcc 2.95 ? Alex
Diffstat (limited to 'Modules/FindKDE3.cmake')
-rw-r--r--Modules/FindKDE3.cmake11
1 files changed, 6 insertions, 5 deletions
diff --git a/Modules/FindKDE3.cmake b/Modules/FindKDE3.cmake
index 337fbc2..38247b1 100644
--- a/Modules/FindKDE3.cmake
+++ b/Modules/FindKDE3.cmake
@@ -80,17 +80,18 @@ FIND_PACKAGE(Qt3 ${_REQ_STRING_KDE3})
FIND_PACKAGE(X11 ${_REQ_STRING_KDE3})
-#add some KDE specific stuff
+# add some KDE specific stuff
SET(KDE3_DEFINITIONS -DQT_CLEAN_NAMESPACE -D_GNU_SOURCE)
set(_KDE3_USE_FLAGS FALSE)
if(CMAKE_COMPILER_IS_GNUCXX)
set(_KDE3_USE_FLAGS TRUE) # use flags for gnu compiler
execute_process(COMMAND ${CMAKE_CXX_COMPILER} --version
OUTPUT_VARIABLE out)
- # gnu 2.96 does not work with flags
- if(out MATCHES 2.96)
- set(_KDE3_NO_FLAGS FALSE)
- endif(out MATCHES 2.96)
+ # gnu gcc 2.96 does not work with flags
+# I guess 2.95 also doesn't then
+ if("${out}" MATCHES "2.9[56]")
+ set(_KDE3_USE_FLAGS FALSE)
+ endif("${out}" out MATCHES "2.9[56]")
endif(CMAKE_COMPILER_IS_GNUCXX)
#only on linux, but NOT e.g. on FreeBSD: