Skip to content

Commit e4d98e7

Browse files
committed
fixup
1 parent 637446a commit e4d98e7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: src/CMakeLists.txt

+5-4
Original file line numberDiff line numberDiff line change
@@ -278,16 +278,17 @@ target_include_directories(core_shared PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
278278
add_dependencies(core_static buildvm_output)
279279
add_dependencies(core_shared buildvm_output)
280280

281+
if(${LIBUNWIND_FOUND})
282+
target_link_libraries(core_static PRIVATE ${LIBUNWIND_LIBRARIES})
283+
target_link_libraries(core_shared PRIVATE ${LIBUNWIND_LIBRARIES})
284+
endif()
285+
281286
# --- Generate output ----------------------------------------------------------
282287

283288
# Compiling and linking library binaries (static, shared).
284289

285290
list(APPEND TARGET_LIBS m)
286291

287-
if(NOT LUAJIT_DISABLE_SYSPROF)
288-
list(APPEND TARGET_LIBS ${LIBUNWIND_LIBRARIES})
289-
endif()
290-
291292
set(LIB_OBJECTS_STATIC
292293
$<TARGET_OBJECTS:vm_static>
293294
$<TARGET_OBJECTS:core_static>

0 commit comments

Comments
 (0)