BUG: the variable is _KDE4_USE_FLAGS
ENH: I guess this is also true for gcc 2.95 ? Alex
This commit is contained in:
parent
974feca643
commit
24e584f7a8
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue