nix-overlay/pkgs/openhexagon/SSVLuaWrapper-patch-include-paths.patch

28 lines
874 B
Diff
Raw Normal View History

2021-01-06 23:55:24 +01:00
diff --git a/cmake/modules/FindLUA.cmake b/cmake/modules/FindLUA.cmake
index afd8dbc..14205ec 100755
--- a/cmake/modules/FindLUA.cmake
+++ b/cmake/modules/FindLUA.cmake
@@ -1,4 +1,4 @@
-FIND_PATH(LUA_INCLUDE_DIR lua5.1/lua.hpp
+FIND_PATH(LUA_INCLUDE_DIR lua.hpp
PATHS "${PROJECT_SOURCE_DIR}/../lua/"
PATH_SUFFIXES include/ lua/ lua/include/ ./
"${PROJECT_SOURCE_DIR}/extlibs/lua/"
diff --git a/include/SSVLuaWrapper/LuaContext/LuaContext.h b/include/SSVLuaWrapper/LuaContext/LuaContext.h
index eed4f3c..bff3ef6 100755
--- a/include/SSVLuaWrapper/LuaContext/LuaContext.h
+++ b/include/SSVLuaWrapper/LuaContext/LuaContext.h
@@ -46,9 +46,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
extern "C"
{
-#include <lua5.1/lua.h>
-#include <lua5.1/lualib.h>
-#include <lua5.1/lauxlib.h>
+#include <lua.h>
+#include <lualib.h>
+#include <lauxlib.h>
}