|
@@ -278,7 +278,7 @@ ctkFunctionGetGccVersion(${CMAKE_CXX_COMPILER} GCC_VERSION)
|
|
|
# directives for the third-party headers between "#pragma visibility push/pop"
|
|
|
# statements, it is generally safer to just use default visibility with
|
|
|
# gcc < 4.5.
|
|
|
-IF(CMAKE_COMPILER_IS_GNUCXX AND ${GCC_VERSION} VERSION_GREATER "4.4.0" AND NOT MINGW)
|
|
|
+IF(CMAKE_COMPILER_IS_GNUCXX AND NOT ${GCC_VERSION} VERSION_LESS "4.5" AND NOT MINGW)
|
|
|
SET(VISIBILITY_CXX_FLAGS "-fvisibility=hidden -fvisibility-inlines-hidden")
|
|
|
ENDIF()
|
|
|
|