From 3d37d032fa49a0fc66ec129859706857d6fe4a64 Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Mon, 5 Jul 2021 22:37:07 +0100 Subject: [PATCH] Fix compilation with mingw-w64 --- skeleton/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/skeleton/CMakeLists.txt b/skeleton/CMakeLists.txt index 0492f05..e4398e5 100644 --- a/skeleton/CMakeLists.txt +++ b/skeleton/CMakeLists.txt @@ -44,8 +44,7 @@ target_include_directories(librw_skeleton # TODO: Use SDL_main on platforms that require it if(MINGW AND LIBRW_PLATFORM_D3D9) add_library(librw_skeleton_main INTERFACE) - find_library(MINGW32_LIBRARY NAMES mingw32) - target_link_libraries(librw_skeleton_main INTERFACE ${MINGW32_LIBRARY} librw_skeleton) + target_link_libraries(librw_skeleton_main INTERFACE -lmingw32 librw_skeleton) add_library(librw::skeleton ALIAS librw_skeleton_main) else() add_library(librw::skeleton ALIAS librw_skeleton)