Skip to content

Commit 3904ff4

Browse files
committed
cmake: change the Linux linking to add an explicit lua dependency
The point of the patch is to avoid relying on indirect/implicit Lua linkage on Linux, because we are building luv against system Lua. Signed-off-by: Matěj Cepl <mcepl@cepl.eu>
1 parent d2966af commit 3904ff4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ foreach(TARGET_NAME ${ACTIVE_TARGETS})
267267
endif (USE_LUAJIT)
268268
endif (LUA)
269269
elseif("${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
270-
target_link_libraries(${TARGET_NAME} ${LIBUV_LIBRARIES} rt)
270+
target_link_libraries(${TARGET_NAME} ${LIBUV_LIBRARIES} rt lua)
271271
else()
272272
target_link_libraries(${TARGET_NAME} ${LIBUV_LIBRARIES})
273273
endif()

0 commit comments

Comments
 (0)