summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-09-22 15:08:17 (GMT)
committerBrad King <brad.king@kitware.com>2008-09-22 15:08:17 (GMT)
commit434a99bbeb6ddb063a17b7065eaddf90b0157c65 (patch)
tree93d0303a08c515fd3217d41a8132b99a2c7d926b /Modules/Platform
parent6b851669204adb55490df124a62ffb15f2da4630 (diff)
downloadCMake-434a99bbeb6ddb063a17b7065eaddf90b0157c65.zip
CMake-434a99bbeb6ddb063a17b7065eaddf90b0157c65.tar.gz
CMake-434a99bbeb6ddb063a17b7065eaddf90b0157c65.tar.bz2
ENH: Teach find_library to find OpenBSD-style libs
OpenBSD shared libraries use a ".so.<major>.<minor>" extension and do not have a symlink with just a ".so" extension. Its "ld" is capable of finding the library with the best version. This change adds support for finding such libraries. See issue #3470.
Diffstat (limited to 'Modules/Platform')
-rw-r--r--Modules/Platform/OpenBSD.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Platform/OpenBSD.cmake b/Modules/Platform/OpenBSD.cmake
index cbdcb7d..422227b 100644
--- a/Modules/Platform/OpenBSD.cmake
+++ b/Modules/Platform/OpenBSD.cmake
@@ -1,2 +1,3 @@
SET(CMAKE_DL_LIBS "")
+SET_PROPERTY(GLOBAL PROPERTY FIND_LIBRARY_USE_OPENBSD_VERSIONING 1)
INCLUDE(Platform/UnixPaths)