Skip to content

Build supertux git on MSYS2 #16526

Answered by Biswa96
ghost asked this question in Q&A
Mar 30, 2023 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Here is the changes required to compile supertux main branch with mingw toolchain.

Click here to see the diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5b9d461..a5ab299 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -231,7 +231,7 @@ if(EMSCRIPTEN)
   target_link_options(supertux2 PUBLIC -sEXPORTED_FUNCTIONS=['_main','_set_resolution','_save_config','_onDownloadProgress','_onDownloadFinished','_onDownloadError','_onDownloadAborted','_getExceptionMessage'] PUBLIC -sEXPORTED_RUNTIME_METHODS=['ccall','cwrap'] PUBLIC -sEXTRA_EXPORTED_RUNTIME_METHODS=['ccall','cwrap'])
 endif()
 
-if(WIN32 AND NOT VCPKG_BUILD)
+if(MSVC AND NOT VCPKG_BUILD)
   ## Copy dlls on windows
   add_custom_…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@ghost
Comment options

@ghost
Comment options

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant