From b49b1b5d5fee6d693a710e23b0e17b99a571e406 Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Fri, 12 Jul 2019 01:06:37 +0300 Subject: [PATCH] Attempt to fix latest SDL2 link with HIDAPI on Windows --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fcbaec43..9dbb8983 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -666,6 +666,7 @@ if(LIBMATH_NEEDED AND NOT MSVC) endif() if(WIN32) + list(APPEND SDLMixerX_LINK_LIBS SetupAPI) option(BUILD_AS_VB6_BINDING "Compile library into solid module compatible with VisualBasic 6" OFF) if(BUILD_AS_VB6_BINDING) message("== SDL Mixer X will be built as solid module that is ready for MS-VB6 binding! ==") @@ -674,7 +675,7 @@ if(WIN32) list(REMOVE_ITEM SDLMixerX_LINK_LIBS SDL2$<$:d>) list(APPEND SDLMixerX_LINK_LIBS SDL2-static - uuid winmm ole32 imm32 version oleaut32 user32 gdi32) + uuid winmm ole32 imm32 version oleaut32 user32 gdi32 SetupAPI) if(NOT MSVC) list(APPEND SDLMixerX_LINK_LIBS stdc++ gcc pthread) endif()