Don't use reserved name for include library

This commit is contained in:
Walter Schell 2023-07-09 17:20:42 -04:00
parent c80acc1835
commit 90b1300f1a

View File

@ -7,9 +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_CONFIG "Lua::@LUA_EXPORT_LIBRARY@" IMPORTED_CONFIGURATIONS)
get_target_property(LUA_LIBRARY "Lua::@LUA_EXPORT_LIBRARY@" "IMPORTED_LOCATION_${LUA_CONFIG}") get_target_property(LUA_LIBRARY "Lua::@LUA_EXPORT_LIBRARY@" "IMPORTED_LOCATION_${LUA_CONFIG}")
set(LUA_LIBRARIES "${LUA_LIBRARY}") set(LUA_LIBRARIES "${LUA_LIBRARY}")
add_library(Lua::Includes INTERFACE) add_library(LUA_INCLUDE_LIB INTERFACE)
target_include_directories(Lua::Includes INTERFACE "${LUA_INCLUDE_DIR}") target_include_directories(LUA_INCLUDE_LIB INTERFACE "${LUA_INCLUDE_DIR}")
list(APPEND LUA_LIBRARIES Lua::Includes) list(APPEND LUA_LIBRARIES LUA_INCLUDE_LIB)
foreach(LIB_NAME @LUA_LINKED_LIBRARIES@) foreach(LIB_NAME @LUA_LINKED_LIBRARIES@)
find_library(LIB_LOCATION "${LIB_NAME}") find_library(LIB_LOCATION "${LIB_NAME}")