mirror of
https://github.com/walterschell/Lua.git
synced 2024-11-15 12:15:43 +08:00
Don't use reserved name for include library
This commit is contained in:
parent
c80acc1835
commit
90b1300f1a
@ -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}")
|
||||||
|
Loading…
Reference in New Issue
Block a user