diff options
author | Alexander Neundorf <neundorf@kde.org> | 2008-06-18 22:57:21 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2008-06-18 22:57:21 (GMT) |
commit | 8fc21423644ce29f3a42ece5dfdf68e2024daac7 (patch) | |
tree | 2fa0960f15fca4422919ef9779f2645c775f016b /Modules/FindKDE3.cmake | |
parent | 24e584f7a85404a5d0720af40c18d1369dd8d6c5 (diff) | |
download | CMake-8fc21423644ce29f3a42ece5dfdf68e2024daac7.zip CMake-8fc21423644ce29f3a42ece5dfdf68e2024daac7.tar.gz CMake-8fc21423644ce29f3a42ece5dfdf68e2024daac7.tar.bz2 |
STYLE: use uppercase to be consistent with the rest of the file
Alex
Diffstat (limited to 'Modules/FindKDE3.cmake')
-rw-r--r-- | Modules/FindKDE3.cmake | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Modules/FindKDE3.cmake b/Modules/FindKDE3.cmake index 38247b1..55f4a1e 100644 --- a/Modules/FindKDE3.cmake +++ b/Modules/FindKDE3.cmake @@ -82,17 +82,17 @@ FIND_PACKAGE(X11 ${_REQ_STRING_KDE3}) # 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 +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 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) + 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: IF(CMAKE_SYSTEM_NAME MATCHES "Linux" AND _KDE3_USE_FLAGS) |