Skip to content

Commit 006ab3b

Browse files
authored
Fix the way to specify dl library
1 parent 3f120db commit 006ab3b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ if(ENABLE_BACKTRACE)
6868
#HACK - this assumes the library path is already searched?
6969
else()
7070
find_path(UNWIND_INCLUDE_DIR libunwind.h HINTS ${PC_UNWIND_INCLUDEDIR})
71-
target_link_libraries(OpenApoc_Library PUBLIC ${PC_UNWIND_LIBRARIES} dl)
71+
target_link_libraries(OpenApoc_Library PUBLIC ${PC_UNWIND_LIBRARIES} ${CMAKE_DL_LIBS})
7272
endif()
7373
target_compile_definitions(OpenApoc_Library PUBLIC -DBACKTRACE_LIBUNWIND)
7474
target_include_directories(OpenApoc_Library PUBLIC ${UNWIND_INCLUDE_DIR})

0 commit comments

Comments
 (0)