xmake-io / xmake

🔥 A cross-platform build utility based on Lua
https://xmake.io
Apache License 2.0
10.14k stars 782 forks source link

fix(cmake): Set correct c++ compiler and detect ninja for MinGW #5520

Closed 24bit-xjkp closed 2 months ago

24bit-xjkp commented 2 months ago
  1. Set clang++ and g++ first since we use the first c++ compiler in the toolchain to build the package
  2. Try to detect ninja when use a toolchain without mingw
  3. see https://github.com/xmake-io/xmake/issues/5518
waruqi commented 2 months ago

https://github.com/xmake-io/xmake/pull/5521