From 0073d700d266eefce95cba799aaea2de72d518e7 Mon Sep 17 00:00:00 2001 From: Walter Schell Date: Sun, 9 Jul 2023 17:52:18 -0400 Subject: [PATCH] Add link to LUA_LIBRARIES in test for module compatible mode --- lua-config-package-tests/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/lua-config-package-tests/CMakeLists.txt b/lua-config-package-tests/CMakeLists.txt index 3f2b073..e810d8b 100644 --- a/lua-config-package-tests/CMakeLists.txt +++ b/lua-config-package-tests/CMakeLists.txt @@ -16,6 +16,7 @@ add_library(lua-lib-module-compatible-mode UNKNOWN IMPORTED "${LUA_LIBRARY}") set_target_properties(lua-lib-module-compatible-mode PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${LUA_INCLUDE_DIR}" 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") target_link_libraries(lua-config-package-build-test-using-module-compatible-mode lua-lib-module-compatible-mode)