diff options
author | Brad King <brad.king@kitware.com> | 2018-02-21 15:43:49 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-02-21 15:44:08 (GMT) |
commit | fef001884f28bf2e3d6159bb0c8ef4ed2253f2e9 (patch) | |
tree | 3d4ef54553b50cd19279811e8dd4eafdad4f4acf /Modules | |
parent | fcae625f48856883e9dd3733d87c5d1703ad011c (diff) | |
parent | 6cced7872557fe92228114ce6bf55a30ef91e358 (diff) | |
download | CMake-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.cmake | 1 |
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 |