From 73048343dead173d4429ed6133511c9fb72c9445 Mon Sep 17 00:00:00 2001 From: CrepHidery Date: Wed, 3 Jun 2026 23:00:46 +0800 Subject: [PATCH] fix: CMakeLists.txt --- CMakeLists.txt | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2d88e99..0034012 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -295,11 +295,6 @@ if (USE_GTK) foreach(tgt IN LISTS SFD_TEST_TARGETS) target_link_libraries(${tgt} PRIVATE ${_gtk_win_libs}) endforeach() - - # BMPlatform 也需要链接 GTK(如果存在) - if (TARGET BMPlatform) - target_link_libraries(BMPlatform PRIVATE ${_gtk_win_libs}) - endif() else() if (NOT PKG_CONFIG_FOUND) message(FATAL_ERROR "PkgConfig is required when USE_GTK=ON") @@ -360,11 +355,6 @@ if (USE_LIBUSB) foreach(tgt IN LISTS SFD_TEST_TARGETS) target_link_libraries(${tgt} PRIVATE ${_libusb_win_lib}) endforeach() - - # BMPlatform 也需要链接 libusb - if (TARGET BMPlatform) - target_link_libraries(BMPlatform PRIVATE ${_libusb_win_lib}) - endif() else() if (NOT PKG_CONFIG_FOUND) message(FATAL_ERROR "PkgConfig is required when USE_LIBUSB=ON")