# System is unknown to cmake, create: Platform/MINGW64\_NT-10.0-19044

**URL:** https://discourse.cmake.org/t/system-is-unknown-to-cmake-create-platform-mingw64-nt-10-0-19044/4734
**Category:** Usage
**Tags:** os:windows
**Created:** [December 23, 2021, 7:02pm UTC](https://discourse.cmake.org/t/system-is-unknown-to-cmake-create-platform-mingw64-nt-10-0-19044/4734 "2021-12-23T19:02:20Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![SamuelMarks](https://discourse.cmake.org/user_avatar/discourse.cmake.org/samuelmarks/32/1619_2.png) [@SamuelMarks](https://discourse.cmake.org/u/SamuelMarks)
#### Post date: [December 23, 2021, 7:02pm UTC](https://discourse.cmake.org/t/system-is-unknown-to-cmake-create-platform-mingw64-nt-10-0-19044/4734/1 "2021-12-23T19:02:20Z")

</div>

Running from _MSYS2 MinGW 64-bit_ with CMake 3.22.1 with gcc 11.2.0 on my fork [https://github.com/SamuelMarks/fswatch/tree/multi-os-ci:](https://github.com/SamuelMarks/fswatch/tree/multi-os-ci:)

```auto
# Run from empty build dir:
cmake ..

```

Error:

```auto
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0-19044 to use this system, please post your config file on discourse.cmake.org so it can be added to cmake

```

Related:

> [@Error building STRATA on MSYS2](https://discourse.cmake.org/t/error-building-strata-on-msys2/2810/3):
>
> I am using MSYS2 as recommended on the website Assuming that you are following [strata’s instructions](https://github.com/arkottke/strata#building-on-windows), the cmake installation you are using comes from a MSYS2 package. That is not maintained by upstream CMake developers and has some extra patches. create … Platform/MINGW64\_NT-10.0-18363 to use this system The MSYS2 version of CMake on your system is somehow misidentifying the system name. It shouldn’t have the platform version number in it. I suggest asking for help from strata first, …

---

<div class="post-metadata">

### Author: ![scholarsmate](https://discourse.cmake.org/user_avatar/discourse.cmake.org/scholarsmate/32/2125_2.png) [@scholarsmate](https://discourse.cmake.org/u/scholarsmate)
#### Post date: [January 20, 2022, 10:55pm UTC](https://discourse.cmake.org/t/system-is-unknown-to-cmake-create-platform-mingw64-nt-10-0-19044/4734/2 "2022-01-20T22:55:01Z")

</div>

I too am having a very similar issue (I think). Here is a bit of the build log where cmake kindly informs me where to go to post about the issue:

```auto
System is unknown to cmake, create:

[453](https://github.com/ctc-oss/omega-edit/runs/4889162055?check_suite_focus=true#step:5:453)Platform/MINGW64_NT-10.0-17763 to use this system, please post your config file on discourse.cmake.org so it can be added to cmake

```

I’m new to the forums and relatively new to cmake. Things started getting complex when I vendor’ed in gRPC (which also uses cmake) as a submodule that I need to link against. Any assistance would be greatly appreciated. Thanks!

---

<div class="post-metadata">

### Author: ![drankinatty](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/d/f6c823/32.png) [@drankinatty](https://discourse.cmake.org/u/drankinatty)
#### Post date: [September 13, 2022, 4:49pm UTC](https://discourse.cmake.org/t/system-is-unknown-to-cmake-create-platform-mingw64-nt-10-0-19044/4734/3 "2022-09-13T16:49:31Z")

</div>

If you received the message, then you likely installed the generic “cmake” for gcc instead of the cmake specific to Msys2. For that you need to install “mingw-w64-x86\_64-cmake”

---

<div class="post-metadata">

### Author: ![Chih-Chun\_Chen](https://discourse.cmake.org/user_avatar/discourse.cmake.org/chih-chun_chen/32/2845_2.png) [@Chih-Chun\_Chen](https://discourse.cmake.org/u/Chih-Chun_Chen)
#### Post date: [October 19, 2022, 9:45am UTC](https://discourse.cmake.org/t/system-is-unknown-to-cmake-create-platform-mingw64-nt-10-0-19044/4734/4 "2022-10-19T09:45:06Z")

</div>

Thanks David, you saved my day, after install the correct cmake version by

```auto
pacman -S mingw-w64-x86_64-cmake

```

It resolves the problem of ‘System is unknown to cmake’.

---

<div class="post-metadata">

### Author: ![SamuelMarks](https://discourse.cmake.org/user_avatar/discourse.cmake.org/samuelmarks/32/1619_2.png) [@SamuelMarks](https://discourse.cmake.org/u/SamuelMarks)
#### Post date: [May 14, 2023, 4:26pm UTC](https://discourse.cmake.org/t/system-is-unknown-to-cmake-create-platform-mingw64-nt-10-0-19044/4734/5 "2023-05-14T16:26:27Z")

</div>

Hmm, that sort of worked @drankinatty  
[https://packages.msys2.org/search?q=cmake](https://packages.msys2.org/search?q=cmake)

```auto
call "C:\msys64""\msys2_shell.cmd" -defterm -no-start -here -mingw32 -c "cmake -DCMAKE_BUILD_TYPE='Debug' .. && cmake --build . && ctest -C 'Debug' && cpack -G 'ZIP' -C 'Debug'"
-- The C compiler identification is GNU 11.3.0
System is unknown to cmake, create:
Platform/MINGW32_NT-10.0-22621 to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
-- Detecting C compiler ABI info
System is unknown to cmake, create:
Platform/MINGW32_NT-10.0-22621 to use this system, please post your config file on discourse.cmake.org so it can be added to cmake

```

(the same works when `-mingw64` is specified; so is it that MinGW 32-bit variant isn’t supported by CMake?)

---

<div class="post-metadata">

### Author: ![SamuelMarks](https://discourse.cmake.org/user_avatar/discourse.cmake.org/samuelmarks/32/1619_2.png) [@SamuelMarks](https://discourse.cmake.org/u/SamuelMarks)
#### Post date: [May 18, 2023, 1:36am UTC](https://discourse.cmake.org/t/system-is-unknown-to-cmake-create-platform-mingw64-nt-10-0-19044/4734/6 "2023-05-18T01:36:53Z")

</div>

Ended up:

```auto
pacman -S --needed base-devel mingw-w64-i686-cmake mingw-w64-i686-toolchain mingw-w64-i686-ninja

```

Which solved the problem (at least with `-G Ninja`)

---

<div class="post-metadata">

### Author: ![lucky9989](https://discourse.cmake.org/user_avatar/discourse.cmake.org/lucky9989/32/4391_2.png) [@lucky9989](https://discourse.cmake.org/u/lucky9989)
#### Post date: [March 9, 2024, 12:08pm UTC](https://discourse.cmake.org/t/system-is-unknown-to-cmake-create-platform-mingw64-nt-10-0-19044/4734/7 "2024-03-09T12:08:56Z")

</div>

This problem also exists though I had installed “mingw-w64-x86\_64-cmake”

---

<div class="post-metadata">

### Author: ![lucky9989](https://discourse.cmake.org/user_avatar/discourse.cmake.org/lucky9989/32/4391_2.png) [@lucky9989](https://discourse.cmake.org/u/lucky9989)
#### Post date: [March 9, 2024, 12:10pm UTC](https://discourse.cmake.org/t/system-is-unknown-to-cmake-create-platform-mingw64-nt-10-0-19044/4734/8 "2024-03-09T12:10:50Z")

</div>

like this:$ cmake …  
– The C compiler identification is GNU 13.2.0  
– The CXX compiler identification is GNU 13.2.0  
System is unknown to cmake, create:  
Platform/MINGW64\_NT-10.0-22621 to use this system, please post your config file on [discourse.cmake.org](http://discourse.cmake.org) so it can be added to cmake
