cmake: add -lSetupAPI to SDL2 libs for win32
Fix for undefined reference errors linking for msys2 mingw build using the scripts. Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
parent
04c77a267f
commit
af63a1194f
|
@ -219,6 +219,10 @@ endif()
|
|||
find_package(SDL2 REQUIRED)
|
||||
add_definitions(${SDL2_DEFINITIONS})
|
||||
|
||||
if(WIN32)
|
||||
set(SDL2_LIBRARY ${SDL2_LIBRARY} -lSetupAPI)
|
||||
endif()
|
||||
|
||||
if(ENABLE_LINK)
|
||||
# msys2 does not have static sfml libs atm
|
||||
# while on mxe we use static libs
|
||||
|
|
Loading…
Reference in New Issue