From 02df578939878304c033374b94530efca841342d Mon Sep 17 00:00:00 2001 From: WerWolv Date: Wed, 4 Jan 2023 13:23:42 +0100 Subject: [PATCH] build: Fix library linking on non-windows --- main/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt index 28c037528..d9d89d21c 100644 --- a/main/CMakeLists.txt +++ b/main/CMakeLists.txt @@ -30,10 +30,11 @@ set_target_properties(main PROPERTIES add_compile_definitions(IMHEX_PROJECT_NAME="${PROJECT_NAME}") +target_link_libraries(main PRIVATE libromfs-imhex libimhex ${FMT_LIBRARIES}) 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 () - target_link_libraries(main PRIVATE libromfs-imhex pthread libimhex) + target_link_libraries(main PRIVATE pthread) endif () if (APPLE)