mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-18 12:41:40 -06:00
FindLua: Search for all library names in each path
Add the `NAMES_PER_DIR` option to our `find_library` call so that all names are considered in each path as we proceed through the search. This allows locally-built unversioned libraries to be found before versioned system libraries if they appear earlier in the set of paths to be searched. Suggested-by: Alan W. Irwin <irwin@beluga.phys.uvic.ca>
This commit is contained in:
@@ -198,6 +198,7 @@ endif ()
|
|||||||
|
|
||||||
find_library(LUA_LIBRARY
|
find_library(LUA_LIBRARY
|
||||||
NAMES ${_lua_library_names} lua
|
NAMES ${_lua_library_names} lua
|
||||||
|
NAMES_PER_DIR
|
||||||
HINTS
|
HINTS
|
||||||
ENV LUA_DIR
|
ENV LUA_DIR
|
||||||
PATH_SUFFIXES lib
|
PATH_SUFFIXES lib
|
||||||
|
|||||||
Reference in New Issue
Block a user