Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down
Loading