--- cmake/modules/FindLUA.cmake.orig 2018-11-08 15:53:04.000000000 -0800 +++ cmake/modules/FindLUA.cmake 2018-11-08 15:53:49.000000000 -0800 @@ -89,6 +89,8 @@ IF(LUA_LIBRARY) SET( LUA_LIBRARIES "${LUA_LIBRARY}") SET( LUA_INCLUDE_DIRS ${LUA_INCLUDE_DIR} ) +# put lua_include_dir ahead of other include directories to pick up the right lua.h + include_directories(BEFORE ${LUA_INCLUDE_DIR}) if (WIN32) set ( LUA_DLL_DIR "${LUA_HINTS}" CACHE PATH "Path to Lua DLL"