1
0
mirror of synced 2024-11-12 02:00:52 +01:00

build: Fix linking on Unix platforms

This commit is contained in:
WerWolv 2021-02-22 12:29:16 +01:00
parent 0e2add204b
commit 7f21cdffa2

View File

@ -71,7 +71,7 @@ target_link_directories(imhex PRIVATE ${CAPSTONE_LIBRARY_DIRS} ${MAGIC_LIBRARY_D
if (WIN32)
target_link_libraries(imhex libdl.a libmagic.a libgnurx.a libtre.a libintl.a libiconv.a libshlwapi.a libcapstone.a LLVMDemangle libimhex ${Python_LIBRARIES} wsock32 ws2_32)
elseif (UNIX)
target_link_libraries(imhex magic ${CMAKE_DL_LIBS} capstone LLVMDemangle libimhex ${Python_LIBRARIES} dl)
target_link_libraries(imhex magic ${CMAKE_DL_LIBS} capstone LLVMDemangle libimhex ${Python_LIBRARIES} dl pthread)
endif()
createPackage()