summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-09-25 13:32:45 (GMT)
committerBrad King <brad.king@kitware.com>2018-09-25 13:32:45 (GMT)
commit98dfdab19c07cf795678000c1681ea063843b0ed (patch)
treed0e071a0a2ddeba70a903fe755ce43533b1839f1 /Modules
parent55a5b56e083c4c2d4e768212422991a22569ecb4 (diff)
downloadCMake-98dfdab19c07cf795678000c1681ea063843b0ed.zip
CMake-98dfdab19c07cf795678000c1681ea063843b0ed.tar.gz
CMake-98dfdab19c07cf795678000c1681ea063843b0ed.tar.bz2
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>
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindLua.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/FindLua.cmake b/Modules/FindLua.cmake
index e86c15c..68530b3 100644
--- a/Modules/FindLua.cmake
+++ b/Modules/FindLua.cmake
@@ -198,6 +198,7 @@ endif ()
find_library(LUA_LIBRARY
NAMES ${_lua_library_names} lua
+ NAMES_PER_DIR
HINTS
ENV LUA_DIR
PATH_SUFFIXES lib