shithub: cstory

Download patch

ref: 6e3d90d3d10fd8a3c02ccb15a923e662fc346209
parent: 624adbdab89dc121d22dc784ebdf1cc760055885
parent: 181ecc3ec24a5623dfbf4fc83618e55787b88422
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Apr 15 19:31:07 EDT 2020

Merge pull request #112 from GabrielRavier/accurateFixCrossBuild

Fix build for mingw cross-compilation

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -245,11 +245,11 @@
 ################
 
 # Link libraries
-target_link_libraries(CSE2 PRIVATE ddraw.lib dsound.lib version.lib shlwapi.lib imm32.lib winmm.lib dxguid.lib)
+target_link_libraries(CSE2 PRIVATE ddraw dsound version shlwapi imm32 winmm dxguid gdi32)
 
 # Newer MSVC is missing `dinput.lib`
 if(MSVC AND MSVC_VERSION GREATER_EQUAL 1500)
-	target_link_libraries(CSE2 PRIVATE dinput8.lib)
+	target_link_libraries(CSE2 PRIVATE dinput8)
 else()
-	target_link_libraries(CSE2 PRIVATE dinput.lib)
+	target_link_libraries(CSE2 PRIVATE dinput)
 endif()