summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/HP-UX.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-02-01 14:57:41 (GMT)
committerBrad King <brad.king@kitware.com>2008-02-01 14:57:41 (GMT)
commitf49ec94e9f4e90a1c65048c1a587469ece5ee05a (patch)
treeb0a63c250f28bad620fd0ce1f7ceb9206b9d992c /Modules/Platform/HP-UX.cmake
parent65761dee552eed39ba2b93d210dbc257f9a2ce50 (diff)
downloadCMake-f49ec94e9f4e90a1c65048c1a587469ece5ee05a.zip
CMake-f49ec94e9f4e90a1c65048c1a587469ece5ee05a.tar.gz
CMake-f49ec94e9f4e90a1c65048c1a587469ece5ee05a.tar.bz2
ENH: Enable dependent library search paths on more platforms
- HP-UX needs dependent library paths as -L options. - IRIX needs dependent library paths as -L options. - Sun needs dependent library paths as -L options. - FreeBSD needs dependent library paths in -rpath-link option.
Diffstat (limited to 'Modules/Platform/HP-UX.cmake')
-rw-r--r--Modules/Platform/HP-UX.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Platform/HP-UX.cmake b/Modules/Platform/HP-UX.cmake
index 19e13f0..8f0fce8 100644
--- a/Modules/Platform/HP-UX.cmake
+++ b/Modules/Platform/HP-UX.cmake
@@ -6,6 +6,7 @@ SET(CMAKE_FIND_LIBRARY_SUFFIXES ".sl" ".so" ".a")
# in the -L path. Therefore the runtime path must be added to the
# link line with -L flags.
SET(CMAKE_SHARED_LIBRARY_LINK_C_WITH_RUNTIME_PATH 1)
+SET(CMAKE_LINK_DEPENDENT_LIBRARY_DIRS 1)
# fortran
IF(CMAKE_COMPILER_IS_GNUG77)