Skip to content

Commit

Permalink
CMake|MinGW: Fixed link libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Sep 1, 2019
1 parent 035e6fc commit 03f7397
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doomsday/apps/client/CMakeLists.txt
Expand Up @@ -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)
Expand Down

0 comments on commit 03f7397

Please sign in to comment.