summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
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 /Source/cmake.cxx
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 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index b053fb5..bf62aa9 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -3327,6 +3327,13 @@ void cmake::DefineProperties(cmake *cm)
"directories called lib in the search path when building 64-bit "
"binaries.");
cm->DefineProperty
+ ("FIND_LIBRARY_USE_OPENBSD_VERSIONING", cmProperty::GLOBAL,
+ "Whether FIND_LIBRARY should find OpenBSD-style shared libraries.",
+ "This property is a boolean specifying whether the FIND_LIBRARY "
+ "command should find shared libraries with OpenBSD-style versioned "
+ "extension: \".so.<major>.<minor>\". "
+ "The property is set to true on OpenBSD and false on other platforms.");
+ cm->DefineProperty
("ENABLED_FEATURES", cmProperty::GLOBAL,
"List of features which are enabled during the CMake run.",
"List of features which are enabled during the CMake run. Be default "