summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/SunOS.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/SunOS.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/SunOS.cmake')
-rw-r--r--Modules/Platform/SunOS.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/Platform/SunOS.cmake b/Modules/Platform/SunOS.cmake
index 85e3d38..f6c9d2e 100644
--- a/Modules/Platform/SunOS.cmake
+++ b/Modules/Platform/SunOS.cmake
@@ -98,3 +98,9 @@ ELSE(CMAKE_COMPILER_IS_GNUCXX)
SET(CMAKE_${type}_LINK_DYNAMIC_CXX_FLAGS "-Bdynamic")
ENDFOREACH(type)
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
+
+# The Sun linker needs to find transitive shared library dependencies
+# in the -L path.
+SET(CMAKE_LINK_DEPENDENT_LIBRARY_DIRS 1)
+
+