From decdf58f491c600e453e6283dcb3e3b6c1428f22 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Fri, 26 May 2023 15:47:52 +0100 Subject: [PATCH] Use debug library on Windows only --- sdrbase/CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sdrbase/CMakeLists.txt b/sdrbase/CMakeLists.txt index 61b1e4f99..b34566fb6 100644 --- a/sdrbase/CMakeLists.txt +++ b/sdrbase/CMakeLists.txt @@ -519,8 +519,12 @@ target_link_libraries(sdrbase swagger ) if (LIBSIGMF_FOUND) - target_link_libraries(sdrbase optimized ${LIBSIGMF_LIBRARIES}) - target_link_libraries(sdrbase debug ${LIBSIGMF_LIBRARIES_DEBUG}) + if(WIN32) + target_link_libraries(sdrbase optimized ${LIBSIGMF_LIBRARIES}) + target_link_libraries(sdrbase debug ${LIBSIGMF_LIBRARIES_DEBUG}) + else() + target_link_libraries(sdrbase ${LIBSIGMF_LIBRARIES}) + endif() endif() if (Qt6_FOUND) target_link_libraries(sdrbase