mks5lboot/rbutil: When building for Windows, link with 'setupapi'

Change-Id: I92b1be12f7512eb58c3136349cb1f21b552a6477
This commit is contained in:
Solomon Peachy 2026-07-02 17:21:08 -04:00
parent ce88de54b8
commit 412a78dd5f

View file

@ -322,6 +322,9 @@ add_library(mks5lboot
mks5lboot/mks5lboot.h
)
target_include_directories(mks5lboot PUBLIC ${CMAKE_CURRENT_LIST_DIR}/mks5lboot)
if(WIN32)
target_link_libraries(mks5lboot PRIVATE setupapi)
endif()
add_library(bspatch
bspatch/bspatch.c