From 37ed860ad1e71f347513a38432640f7dda5c07ee Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Fri, 27 Jan 2017 16:52:42 +0100 Subject: GNU C++: record that -fvisibility-inlines-hidden is available since 4.0 See https://gcc.gnu.org/onlinedocs/gcc-4.0.0/gcc/Option-Summary.html --- Modules/Compiler/GNU-CXX.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Compiler/GNU-CXX.cmake b/Modules/Compiler/GNU-CXX.cmake index b04ea11..c007c98 100644 --- a/Modules/Compiler/GNU-CXX.cmake +++ b/Modules/Compiler/GNU-CXX.cmake @@ -6,7 +6,7 @@ if (WIN32) set(CMAKE_CXX_COMPILE_OPTIONS_VISIBILITY_INLINES_HIDDEN "-fno-keep-inline-dllexport") endif() else() - if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.2) + if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.0) set(CMAKE_CXX_COMPILE_OPTIONS_VISIBILITY_INLINES_HIDDEN "-fvisibility-inlines-hidden") endif() endif() -- cgit v0.12