diff --git a/src/openrct2-ui/CMakeLists.txt b/src/openrct2-ui/CMakeLists.txt index 86e7819d4e..88efe96987 100644 --- a/src/openrct2-ui/CMakeLists.txt +++ b/src/openrct2-ui/CMakeLists.txt @@ -12,7 +12,11 @@ if (MSVC) find_package(jansson REQUIRED) find_path(SDL2_INCLUDE_DIRS SDL2/SDL.h) - find_library(SDL2_LDFLAGS sdl2) + if (CMAKE_BUILD_TYPE STREQUAL "Debug") + find_library(SDL2_LDFLAGS sdl2d) + else () + find_library(SDL2_LDFLAGS sdl2) + endif () find_library(SPEEX_LDFLAGS libspeexdsp) else ()