find_library: Allow custom lib suffix be used as find path

Add a new `CMAKE_FIND_LIBRARY_CUSTOM_LIB_SUFFIX` variable to allow use
of a custom suffix on `lib` directory names.  This is a more general
option than that added by commit v3.7.0-rc1~504^2 (Teach find_library
and find_package to search lib32 paths, 2016-06-10).  It allows the find
path to be more deterministic on custom setups.

See discussion in #10287 and #15994.
This commit is contained in:
Christian Schmidbauer
2017-02-25 19:47:49 +01:00
committed by Brad King
parent 78104bd7bc
commit 503f25d490
14 changed files with 58 additions and 14 deletions

View File

@@ -0,0 +1,6 @@
find_library-custom-lib-suffix
------------------------------
* A :variable:`CMAKE_FIND_LIBRARY_CUSTOM_LIB_SUFFIX` variable was added to
tell the :command:`find_library` command to search in a ``lib<suffix>``
directory before each ``lib`` directory that would normally be searched.