mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
Use of `-fvisibility=hidden` fails:
unsupported option '-fvisibility=hidden' for target 'powerpc-ibm-aix7.2.0.0'
Apply the change from commit 4feba34d02 (GNU: Do not use -fvisibility on
AIX or HP-UX, 2016-09-03, v3.7.0-rc1~173^2~2) to IBMClang also.
Issue: #23157
17 lines
445 B
CMake
17 lines
445 B
CMake
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
# file Copyright.txt or https://cmake.org/licensing for details.
|
|
|
|
|
|
# This module is shared by multiple languages; use include blocker.
|
|
if(__AIX_COMPILER_IBMCLANG)
|
|
return()
|
|
endif()
|
|
set(__AIX_COMPILER_IBMCLANG 1)
|
|
|
|
include(Platform/AIX-GNU)
|
|
|
|
macro(__aix_compiler_ibmclang lang)
|
|
__aix_compiler_gnu(${lang})
|
|
unset(CMAKE_${lang}_COMPILE_OPTIONS_VISIBILITY)
|
|
endmacro()
|