Browse Source

Merge topic 'FindLua-tolerate-var'

6cced787 FindLua: Fix error when LUA_INCLUDE_PREFIX is set as a variable

Acked-by: Kitware Robot <[email protected]>
Merge-request: !1778
Brad King 7 years ago
parent
commit
fef001884f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Modules/FindLua.cmake

+ 1 - 0
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