Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guidelines for using CMake on MSYS2 #144

Closed
eine opened this issue Jul 19, 2021 · 0 comments · Fixed by #161
Closed

Guidelines for using CMake on MSYS2 #144

eine opened this issue Jul 19, 2021 · 0 comments · Fixed by #161

Comments

@eine
Copy link
Contributor

eine commented Jul 19, 2021

From msys2/setup-msys2#149

When building for mingw with CMake, one has to take care to install the mingw version, not msys version, of CMake, i.e. the one prefixed with mingw-w64-*.

  • When building with CMake on Windows for mingw targets, one has to set a a choice of generator with -G; the default is NMake, which looks for the installed MSVC compilers instead. You can choose between Ninja (install ${{matrix.prefix}}-ninja; the build uses the command ninja), MinGW Makefiles (install ${{matrix.prefix}}-make, the build uses mingw32-make) or MSYS Makefiles (install make, and the build uses the plain make command).

/cc @mstorsjo

eine added a commit to msys2/setup-msys2 that referenced this issue Jul 19, 2021
mstorsjo added a commit to mstorsjo/msys2.github.io that referenced this issue Oct 18, 2021
mstorsjo added a commit to mstorsjo/msys2.github.io that referenced this issue Oct 18, 2021
lazka pushed a commit that referenced this issue Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant