Add link to LUA_LIBRARIES in test for module compatible mode

This commit is contained in:
Walter Schell 2023-07-09 17:52:18 -04:00
parent 90b1300f1a
commit 0073d700d2

View File

@ -16,6 +16,7 @@ add_library(lua-lib-module-compatible-mode UNKNOWN IMPORTED "${LUA_LIBRARY}")
set_target_properties(lua-lib-module-compatible-mode PROPERTIES set_target_properties(lua-lib-module-compatible-mode PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${LUA_INCLUDE_DIR}" INTERFACE_INCLUDE_DIRECTORIES "${LUA_INCLUDE_DIR}"
IMPORTED_LOCATION "${LUA_LIBRARY}") IMPORTED_LOCATION "${LUA_LIBRARY}")
target_link_libraries(lua-lib-module-compatible-mode INTERFACE "${LUA_LIBRARIES}")
add_executable(lua-config-package-build-test-using-module-compatible-mode "./lua-config-package-build-test.c") add_executable(lua-config-package-build-test-using-module-compatible-mode "./lua-config-package-build-test.c")
target_link_libraries(lua-config-package-build-test-using-module-compatible-mode lua-lib-module-compatible-mode) target_link_libraries(lua-config-package-build-test-using-module-compatible-mode lua-lib-module-compatible-mode)