[Cmake-commits] [cmake-commits] alex committed FindKDE3.cmake 1.17 1.18
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed Jun 18 18:57:23 EDT 2008
Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv26976
Modified Files:
FindKDE3.cmake
Log Message:
STYLE: use uppercase to be consistent with the rest of the file
Alex
Index: FindKDE3.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FindKDE3.cmake,v
retrieving revision 1.17
retrieving revision 1.18
diff -C 2 -d -r1.17 -r1.18
*** FindKDE3.cmake 18 Jun 2008 20:39:46 -0000 1.17
--- FindKDE3.cmake 18 Jun 2008 22:57:21 -0000 1.18
***************
*** 83,97 ****
# 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 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:
--- 83,97 ----
# 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 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:
More information about the Cmake-commits
mailing list