[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/cmake/modules
From: Adrian Schroeter <adrian () suse ! de>
Date: 2010-05-17 4:47:23
Message-ID: 20100517044724.0A210AC8B8 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1127602 by adrian:
do not die when using non-gcc compiler, for example clang++
M +5 -0 FindKDE4Internal.cmake
--- trunk/KDE/kdelibs/cmake/modules/FindKDE4Internal.cmake #1127601:1127602
@@ -1200,12 +1200,17 @@
string (REGEX MATCH "[345]\\.[0-9]\\.[0-9]" _gcc_version "${_gcc_version_info}")
# gcc on mac just reports: "gcc (GCC) 3.3 20030304 ..." without the patch level, \
handle this here: if (NOT _gcc_version)
+ string (REGEX MATCH ".*\\(GCC\\).* ([34]\\.[0-9]) .*" "\\1.0" _gcc_version \
"${gcc_on_macos}") + if (gcc_on_macos)
string (REGEX REPLACE ".*\\(GCC\\).* ([34]\\.[0-9]) .*" "\\1.0" _gcc_version \
"${_gcc_version_info}") + endif (gcc_on_macos)
endif (NOT _gcc_version)
+ if (_gcc_version)
macro_ensure_version("4.1.0" "${_gcc_version}" GCC_IS_NEWER_THAN_4_1)
macro_ensure_version("4.2.0" "${_gcc_version}" GCC_IS_NEWER_THAN_4_2)
macro_ensure_version("4.3.0" "${_gcc_version}" GCC_IS_NEWER_THAN_4_3)
+ endif (_gcc_version)
# save a little by making local statics not threadsafe
# ### do not enable it for older compilers, see
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic