diff options
author | Brad King <brad.king@kitware.com> | 2008-09-22 15:08:17 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-09-22 15:08:17 (GMT) |
commit | 434a99bbeb6ddb063a17b7065eaddf90b0157c65 (patch) | |
tree | 93d0303a08c515fd3217d41a8132b99a2c7d926b /Modules/Platform | |
parent | 6b851669204adb55490df124a62ffb15f2da4630 (diff) | |
download | CMake-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.cmake | 1 |
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) |