diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2017-01-27 15:52:42 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2017-02-02 17:28:56 (GMT) |
commit | 37ed860ad1e71f347513a38432640f7dda5c07ee (patch) | |
tree | 13dd188edb9ac2700db175bfd9f618e3d1b24ceb | |
parent | 94a8ee6fd0ba487437579bb224500b9f46c2819c (diff) | |
download | CMake-37ed860ad1e71f347513a38432640f7dda5c07ee.zip CMake-37ed860ad1e71f347513a38432640f7dda5c07ee.tar.gz CMake-37ed860ad1e71f347513a38432640f7dda5c07ee.tar.bz2 |
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
-rw-r--r-- | Modules/Compiler/GNU-CXX.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
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() |