[Cmake-commits] CMake branch, next, updated. v3.6.1-1037-g7b3e38b
Brad King
brad.king at kitware.com
Tue Aug 2 09:27:17 EDT 2016
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".
The branch, next has been updated
via 7b3e38b04e7abd7144b33938f839c61aa92e6660 (commit)
via 85e0314201005c923420eb650a9629e38356b77a (commit)
from 174049de9c674d86052f6f091f6dfe1c9259266d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7b3e38b04e7abd7144b33938f839c61aa92e6660
commit 7b3e38b04e7abd7144b33938f839c61aa92e6660
Merge: 174049d 85e0314
Author: Brad King <brad.king at kitware.com>
AuthorDate: Tue Aug 2 09:27:16 2016 -0400
Commit: CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Tue Aug 2 09:27:16 2016 -0400
Merge topic 'gcc-fvisibility-version' into next
85e03142 GNU: Use -fvisibility on GCC 4.0 and 4.1 too
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=85e0314201005c923420eb650a9629e38356b77a
commit 85e0314201005c923420eb650a9629e38356b77a
Author: Brad King <brad.king at kitware.com>
AuthorDate: Tue Aug 2 09:24:54 2016 -0400
Commit: Brad King <brad.king at kitware.com>
CommitDate: Tue Aug 2 09:24:54 2016 -0400
GNU: Use -fvisibility on GCC 4.0 and 4.1 too
This flag is needed for the `<LANG>_VISIBILITY_PRESET` target property.
It has been supported since GCC 4.0, not 4.2 as we previously recorded.
Fixes #16222.
diff --git a/Modules/Compiler/GNU.cmake b/Modules/Compiler/GNU.cmake
index 34d4eaf..4d2fe5b 100644
--- a/Modules/Compiler/GNU.cmake
+++ b/Modules/Compiler/GNU.cmake
@@ -25,7 +25,7 @@ macro(__compiler_gnu lang)
if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 3.4)
set(CMAKE_${lang}_COMPILE_OPTIONS_PIE "-fPIE")
endif()
- if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 4.2)
+ if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 4.0)
set(CMAKE_${lang}_COMPILE_OPTIONS_VISIBILITY "-fvisibility=")
endif()
set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "-fPIC")
-----------------------------------------------------------------------
Summary of changes:
Modules/Compiler/GNU.cmake | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive
--
CMake
More information about the Cmake-commits
mailing list