summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-02-21 15:43:49 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-02-21 15:44:08 (GMT)
commitfef001884f28bf2e3d6159bb0c8ef4ed2253f2e9 (patch)
tree3d4ef54553b50cd19279811e8dd4eafdad4f4acf /Modules
parentfcae625f48856883e9dd3733d87c5d1703ad011c (diff)
parent6cced7872557fe92228114ce6bf55a30ef91e358 (diff)
downloadCMake-fef001884f28bf2e3d6159bb0c8ef4ed2253f2e9.zip
CMake-fef001884f28bf2e3d6159bb0c8ef4ed2253f2e9.tar.gz
CMake-fef001884f28bf2e3d6159bb0c8ef4ed2253f2e9.tar.bz2
Merge topic 'FindLua-tolerate-var'
6cced787 FindLua: Fix error when LUA_INCLUDE_PREFIX is set as a variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1778
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 b59b9b3..7eba206 100644
--- a/Modules/FindLua.cmake
+++ b/Modules/FindLua.cmake
@@ -122,6 +122,7 @@ endif ()
if (NOT LUA_VERSION_STRING)
foreach (subdir IN LISTS _lua_include_subdirs)
unset(LUA_INCLUDE_PREFIX CACHE)
+ unset(LUA_INCLUDE_PREFIX)
find_path(LUA_INCLUDE_PREFIX ${subdir}/lua.h
HINTS
ENV LUA_DIR