Skip to content

Commit

Permalink
Fix compilation with mingw-w64
Browse files Browse the repository at this point in the history
  • Loading branch information
ccawley2011 committed Jul 5, 2021
1 parent 77753c8 commit 3d37d03
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions skeleton/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3d37d03

Please sign in to comment.