From 03f7397c7a1e3da8d1b29149685751152c0c34a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20Ker=C3=A4nen?= Date: Fri, 31 May 2019 10:02:03 +0300 Subject: [PATCH] CMake|MinGW: Fixed link libraries --- doomsday/apps/client/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doomsday/apps/client/CMakeLists.txt b/doomsday/apps/client/CMakeLists.txt index aa54c3f060..25644b72a1 100644 --- a/doomsday/apps/client/CMakeLists.txt +++ b/doomsday/apps/client/CMakeLists.txt @@ -214,7 +214,10 @@ elseif (APPLE) endif () endif () if (TARGET SDL2) - target_link_libraries (client PUBLIC mingw32 SDL2) + if (MINGW) + target_link_libraries (client PUBLIC mingw32) # for SDL_main handling + endif () + target_link_libraries (client PUBLIC SDL2) endif () if (TARGET SDL2_mixer) target_link_libraries (client PUBLIC SDL2_mixer)