Commit e9b25c7c authored by David Faure's avatar David Faure

Fix wrong value of __KDE_HAVE_GCC_VISIBILITY on systems with gcc 6.

Clearly the author of this regexp, in 2006, thought gcc would never
hit version 6 :-)

REVIEW: 128697
parent 6fdb7c88
......@@ -1221,7 +1221,7 @@ if (CMAKE_COMPILER_IS_GNUCXX)
# get the gcc version
exec_program(${CMAKE_C_COMPILER} ARGS ${CMAKE_C_COMPILER_ARG1} --version OUTPUT_VARIABLE _gcc_version_info)
string (REGEX MATCH "[345]\\.[0-9]\\.[0-9]" _gcc_version "${_gcc_version_info}")
string (REGEX MATCH "[3-9]\\.[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}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment