build: Fix library linking on non-windows

This commit is contained in:
WerWolv 2023-01-04 13:23:42 +01:00
parent eb4a1e2692
commit 02df578939
1 changed files with 3 additions and 2 deletions

View File

@ -30,10 +30,11 @@ set_target_properties(main PROPERTIES
add_compile_definitions(IMHEX_PROJECT_NAME="${PROJECT_NAME}") add_compile_definitions(IMHEX_PROJECT_NAME="${PROJECT_NAME}")
target_link_libraries(main PRIVATE libromfs-imhex libimhex ${FMT_LIBRARIES})
if (WIN32) if (WIN32)
target_link_libraries(main PRIVATE usp10 libromfs-imhex wsock32 ws2_32 Dwmapi.lib libimhex ${FMT_LIBRARIES}) target_link_libraries(main PRIVATE usp10 wsock32 ws2_32 Dwmapi.lib)
else () else ()
target_link_libraries(main PRIVATE libromfs-imhex pthread libimhex) target_link_libraries(main PRIVATE pthread)
endif () endif ()
if (APPLE) if (APPLE)