Skip to content

Commit

Permalink
Attempt to fix latest SDL2 link with HIDAPI on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Wohlstand committed Jul 11, 2019
1 parent 0bcd301 commit b49b1b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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! ==")
Expand All @@ -674,7 +675,7 @@ if(WIN32)
list(REMOVE_ITEM SDLMixerX_LINK_LIBS SDL2$<$<CONFIG:Debug>: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()
Expand Down

0 comments on commit b49b1b5

Please sign in to comment.