diff options
| -rw-r--r-- | modules/FindKDE4Internal.cmake | 17 | 
1 files changed, 3 insertions, 14 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake index 1f38a57e..572c5108 100644 --- a/modules/FindKDE4Internal.cmake +++ b/modules/FindKDE4Internal.cmake @@ -715,6 +715,7 @@ if (CMAKE_COMPILER_IS_GNUCXX)     endif (NOT _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)     set(_GCC_COMPILED_WITH_BAD_ALLOCATOR FALSE)     if (GCC_IS_NEWER_THAN_4_1) @@ -726,21 +727,9 @@ if (CMAKE_COMPILER_IS_GNUCXX)        set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")        set (KDE4_C_FLAGS "-fvisibility=hidden") -      macro_push_required_vars() -      set (CMAKE_REQUIRED_FLAGS "${CMAKE_CXX_FLAGS} -shared -fPIC -O0 -fvisibility-inlines-hidden") -      check_cxx_source_compiles("/* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19664 */ -	  #include <string> -          int some_function( void ) __attribute__ ((visibility(\"default\"))); -          int some_function( void ) -          { -	    std::string s(\"blafasel\"); -            return 0; -          }" GCC_VISIBILITY_INLINES_HIDDEN_AVAILABLE) -      macro_pop_required_vars() - -      if (GCC_VISIBILITY_INLINES_HIDDEN_AVAILABLE) +      if (GCC_IS_NEWER_THAN_4_2)            set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility-inlines-hidden") -      endif (GCC_VISIBILITY_INLINES_HIDDEN_AVAILABLE) +      endif (GCC_IS_NEWER_THAN_4_2)     else (__KDE_HAVE_GCC_VISIBILITY AND GCC_IS_NEWER_THAN_4_1 AND NOT _GCC_COMPILED_WITH_BAD_ALLOCATOR)        set (__KDE_HAVE_GCC_VISIBILITY 0)     endif (__KDE_HAVE_GCC_VISIBILITY AND GCC_IS_NEWER_THAN_4_1 AND NOT _GCC_COMPILED_WITH_BAD_ALLOCATOR)  | 
