From c80acc18351a94b3c0d556bc00b95f7cdc5b3e11 Mon Sep 17 00:00:00 2001 From: Walter Schell Date: Sun, 9 Jul 2023 17:17:19 -0400 Subject: [PATCH] Added include directory to LUA_LIBRARIES --- lua-5.4.5/LuaConfig.cmake.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua-5.4.5/LuaConfig.cmake.in b/lua-5.4.5/LuaConfig.cmake.in index 199f611..d55b97e 100644 --- a/lua-5.4.5/LuaConfig.cmake.in +++ b/lua-5.4.5/LuaConfig.cmake.in @@ -7,6 +7,9 @@ add_library(Lua::Library ALIAS "Lua::@LUA_EXPORT_LIBRARY@") get_target_property(LUA_CONFIG "Lua::@LUA_EXPORT_LIBRARY@" IMPORTED_CONFIGURATIONS) get_target_property(LUA_LIBRARY "Lua::@LUA_EXPORT_LIBRARY@" "IMPORTED_LOCATION_${LUA_CONFIG}") set(LUA_LIBRARIES "${LUA_LIBRARY}") +add_library(Lua::Includes INTERFACE) +target_include_directories(Lua::Includes INTERFACE "${LUA_INCLUDE_DIR}") +list(APPEND LUA_LIBRARIES Lua::Includes) foreach(LIB_NAME @LUA_LINKED_LIBRARIES@) find_library(LIB_LOCATION "${LIB_NAME}")