diff options
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindKDE3.cmake | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Modules/FindKDE3.cmake b/Modules/FindKDE3.cmake index 337fbc2538..38247b1299 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: |