diff options
author | Brad King <brad.king@kitware.com> | 2018-01-16 14:24:27 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-01-16 14:25:00 (GMT) |
commit | 47b8a421b000fa2a6428e160b2937488344b6b56 (patch) | |
tree | d3771c03cf3ed9436118689adae551f1e3cfbc91 /Modules | |
parent | 27cbbf0ed047ef4adbe33b3a0bb21812577660b7 (diff) | |
parent | e1f0518de09a54065459a728993563d84fb85a6a (diff) | |
download | CMake-47b8a421b000fa2a6428e160b2937488344b6b56.zip CMake-47b8a421b000fa2a6428e160b2937488344b6b56.tar.gz CMake-47b8a421b000fa2a6428e160b2937488344b6b56.tar.bz2 |
Merge topic 'gnu-visibility-aix'
e1f0518d GNU: Use -fvisibility on AIX when supported
eae0a85d Tests: Remove redundant code from RunCMake.GenerateExportHeader case
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1659
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Platform/AIX-GNU.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/Platform/AIX-GNU.cmake b/Modules/Platform/AIX-GNU.cmake index 7f08c4a..0abbb61 100644 --- a/Modules/Platform/AIX-GNU.cmake +++ b/Modules/Platform/AIX-GNU.cmake @@ -24,5 +24,7 @@ macro(__aix_compiler_gnu lang) set(CMAKE_${lang}_USE_IMPLICIT_LINK_DIRECTORIES_IN_RUNTIME_PATH 1) set(CMAKE_${lang}_LINK_FLAGS "-Wl,-bnoipath") - unset(CMAKE_${lang}_COMPILE_OPTIONS_VISIBILITY) + if(CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 7 OR CMAKE_SYSTEM_VERSION VERSION_LESS 7.1) + unset(CMAKE_${lang}_COMPILE_OPTIONS_VISIBILITY) + endif() endmacro() |