diff options
author | Brad King <brad.king@kitware.com> | 2015-08-18 14:55:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-08-18 14:55:16 (GMT) |
commit | 625225bbe6a84350759d7116a6cd5ad2f850e635 (patch) | |
tree | 7c9c61555669a61265e3d32438ebda9397b22b12 | |
parent | 422d3f68de6bfa5c3fad68d2b030f2a618a821a2 (diff) | |
download | CMake-625225bbe6a84350759d7116a6cd5ad2f850e635.zip CMake-625225bbe6a84350759d7116a6cd5ad2f850e635.tar.gz CMake-625225bbe6a84350759d7116a6cd5ad2f850e635.tar.bz2 |
HP-UX: Do not use ".sl" extension for shared libs on Itanium
Instead use the standard ".so" extension.
Suggested-by: Gerhard Grimm <gerhard.grimm@detec.com>
-rw-r--r-- | Modules/Platform/HP-UX.cmake | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Modules/Platform/HP-UX.cmake b/Modules/Platform/HP-UX.cmake index 65cc731..df042cd 100644 --- a/Modules/Platform/HP-UX.cmake +++ b/Modules/Platform/HP-UX.cmake @@ -1,9 +1,11 @@ set(CMAKE_PLATFORM_REQUIRED_RUNTIME_PATH /usr/lib) -set(CMAKE_SHARED_LIBRARY_SUFFIX ".sl") # .so +if(NOT CMAKE_SYSTEM_PROCESSOR STREQUAL "ia64") + set(CMAKE_SHARED_LIBRARY_SUFFIX ".sl") # .so + set(CMAKE_FIND_LIBRARY_SUFFIXES ".sl" ".so" ".a") + set(CMAKE_EXTRA_SHARED_LIBRARY_SUFFIXES ".so") +endif() set(CMAKE_DL_LIBS "dld") -set(CMAKE_FIND_LIBRARY_SUFFIXES ".sl" ".so" ".a") -set(CMAKE_EXTRA_SHARED_LIBRARY_SUFFIXES ".so") # The HP linker needs to find transitive shared library dependencies # in the -L path. Therefore the runtime path must be added to the |