mirror of
https://github.com/reactos/CMake.git
synced 2024-12-05 10:16:50 +00:00
9e24af0137
Automate with: find Modules -type f -print0 | xargs -0 perl -i -0pe \ 's/set\(([a-zA-Z0-9_\$\{\}]+)(\s+)"\$\{\1\}([^"])/string(APPEND \1\2"\3/g'
21 lines
750 B
CMake
21 lines
750 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(__HPUX_COMPILER_GNU)
|
|
return()
|
|
endif()
|
|
set(__HPUX_COMPILER_GNU 1)
|
|
|
|
macro(__hpux_compiler_gnu lang)
|
|
string(APPEND CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS " -Wl,-E,-b,+nodefaultrpath")
|
|
set(CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS "-Wl,-E")
|
|
set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG "-Wl,+b")
|
|
set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG_SEP ":")
|
|
set(CMAKE_SHARED_LIBRARY_SONAME_${lang}_FLAG "-Wl,+h")
|
|
|
|
set(CMAKE_${lang}_LINK_FLAGS "-Wl,+s,+nodefaultrpath")
|
|
unset(CMAKE_${lang}_COMPILE_OPTIONS_VISIBILITY)
|
|
endmacro()
|