build: fix finding static vcpkg SDL2
The static lib is now called `SDL2-static.lib` and the debug version is called `SDL2-staticd.lib`. Adjust our `cmake/FindSDL2.cmake` for the new vcpkg naming convention. Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
parent
eed171aac0
commit
8f27869715
|
@ -110,8 +110,14 @@ if(SDL2_STATIC)
|
|||
endif()
|
||||
|
||||
unset(lib_suffix)
|
||||
if(MSVC AND CMAKE_BUILD_TYPE MATCHES "^(Debug|RelWithDebInfo)$")
|
||||
set(lib_suffix d)
|
||||
if(MSVC)
|
||||
if(VCPKG_TARGET_TRIPLET MATCHES "-static$")
|
||||
set(lib_suffix "${lib_suffix}-static")
|
||||
endif()
|
||||
|
||||
if(CMAKE_BUILD_TYPE MATCHES "^(Debug|RelWithDebInfo)$")
|
||||
set(lib_suffix "${lib_suffix}d")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
FIND_LIBRARY(SDL2_LIBRARY_TEMP
|
||||
|
|
Loading…
Reference in New Issue