diff options
author | Brad King <brad.king@kitware.com> | 2016-09-03 11:50:47 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-09-05 13:45:13 (GMT) |
commit | 4feba34d02fe42fd20209e5b247f91d8e0f7a2ac (patch) | |
tree | 9c9a10069461e9256e04f7076288275602eb42a9 /Modules/Platform/AIX-GNU.cmake | |
parent | 1eb3ed06cbec8693572398700986cdd970212d4f (diff) | |
download | CMake-4feba34d02fe42fd20209e5b247f91d8e0f7a2ac.zip CMake-4feba34d02fe42fd20209e5b247f91d8e0f7a2ac.tar.gz CMake-4feba34d02fe42fd20209e5b247f91d8e0f7a2ac.tar.bz2 |
GNU: Do not use -fvisibility on AIX or HP-UX
Use of `-fvisibility=hidden` warns:
warning: visibility attribute not supported in this configuration; ignored
Diffstat (limited to 'Modules/Platform/AIX-GNU.cmake')
-rw-r--r-- | Modules/Platform/AIX-GNU.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Platform/AIX-GNU.cmake b/Modules/Platform/AIX-GNU.cmake index df97ab1..ce6faff 100644 --- a/Modules/Platform/AIX-GNU.cmake +++ b/Modules/Platform/AIX-GNU.cmake @@ -34,4 +34,5 @@ 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) endmacro() |