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)