equal
deleted
inserted
replaced
92 # visibility support |
92 # visibility support |
93 check_cxx_compiler_flag(-fvisibility=hidden __KDE_HAVE_GCC_VISIBILITY) |
93 check_cxx_compiler_flag(-fvisibility=hidden __KDE_HAVE_GCC_VISIBILITY) |
94 set( __KDE_HAVE_GCC_VISIBILITY ${__KDE_HAVE_GCC_VISIBILITY} CACHE BOOL "GCC support for hidden visibility") |
94 set( __KDE_HAVE_GCC_VISIBILITY ${__KDE_HAVE_GCC_VISIBILITY} CACHE BOOL "GCC support for hidden visibility") |
95 |
95 |
96 # get the gcc version |
96 # get the gcc version |
97 exec_program(${CMAKE_C_COMPILER} ARGS --version OUTPUT_VARIABLE _gcc_version_info) |
97 exec_program(${CMAKE_C_COMPILER} ARGS ${CMAKE_C_COMPILER_ARG1} --version OUTPUT_VARIABLE _gcc_version_info) |
98 |
98 |
99 string (REGEX MATCH "[345]\\.[0-9]\\.[0-9]" _gcc_version "${_gcc_version_info}") |
99 string (REGEX MATCH "[345]\\.[0-9]\\.[0-9]" _gcc_version "${_gcc_version_info}") |
100 # gcc on mac just reports: "gcc (GCC) 3.3 20030304 ..." without the patch level, handle this here: |
100 # gcc on mac just reports: "gcc (GCC) 3.3 20030304 ..." without the patch level, handle this here: |
101 if (NOT _gcc_version) |
101 if (NOT _gcc_version) |
102 string (REGEX REPLACE ".*\\(GCC\\).* ([34]\\.[0-9]) .*" "\\1.0" _gcc_version "${_gcc_version_info}") |
102 string (REGEX REPLACE ".*\\(GCC\\).* ([34]\\.[0-9]) .*" "\\1.0" _gcc_version "${_gcc_version_info}") |
150 set(CMAKE_INCLUDE_CURRENT_DIR ON) |
150 set(CMAKE_INCLUDE_CURRENT_DIR ON) |
151 set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON) |
151 set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON) |
152 set(CMAKE_COLOR_MAKEFILE ON) |
152 set(CMAKE_COLOR_MAKEFILE ON) |
153 |
153 |
154 set(PHONON_LIB_MAJOR_VERSION "4") |
154 set(PHONON_LIB_MAJOR_VERSION "4") |
155 set(PHONON_LIB_MINOR_VERSION "3") |
155 set(PHONON_LIB_MINOR_VERSION "4") |
156 set(PHONON_LIB_PATCH_VERSION "80") |
156 set(PHONON_LIB_PATCH_VERSION "0") |
157 set(PHONON_LIB_VERSION "${PHONON_LIB_MAJOR_VERSION}.4.0") |
157 set(PHONON_LIB_VERSION "${PHONON_LIB_MAJOR_VERSION}.4.0") |
158 set(PHONON_LIB_SOVERSION ${PHONON_LIB_MAJOR_VERSION}) |
158 set(PHONON_LIB_SOVERSION ${PHONON_LIB_MAJOR_VERSION}) |
159 |
159 |
160 add_definitions(${QT_DEFINITIONS}) |
160 add_definitions(${QT_DEFINITIONS}) |
161 remove_definitions(-DQT3_SUPPORT_WARNINGS -DQT3_SUPPORT) |
161 remove_definitions(-DQT3_SUPPORT_WARNINGS -DQT3_SUPPORT) |