From 033776e7f285ca8c6ca695ebe47e4085c01dc7c0 Mon Sep 17 00:00:00 2001 From: dktue <2878623+dktue@users.noreply.github.com> Date: Thu, 29 Oct 2026 14:24:37 +0100 Subject: [PATCH] build(cmake): link LuaJIT when it is used instead of Lua When find_package(Lua) fails, CMakeLists.txt falls back to LuaJIT, but the target only linked LUA_LIBRARIES, which is empty then, so the link failed. Link LUAJIT_LIBRARIES as well. Co-Authored-By: Claude Opus 5.5 (1M context) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3207fb67..610479bc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -216,7 +216,7 @@ endif() target_include_directories(tilemaker PRIVATE ${CMAKE_BINARY_DIR}) # for generated files target_link_libraries(tilemaker ${THREAD_LIB} ${CMAKE_DL_LIBS} - ${LUA_LIBRARIES} + ${LUA_LIBRARIES} ${LUAJIT_LIBRARIES} shapelib::shp SQLite::SQLite3 Rapidjson::rapidjson