# cmake 3.14, ubunto 20.04: Generator Ninja does not support platform specification, but platform x64 was specified.

**URL:** <https://discourse.cmake.org/t/cmake-3-14-ubunto-20-04-generator-ninja-does-not-support-platform-specification-but-platform-x64-was-specified/1820>\
**Category:** Code\
**Tags:** os:linux, gen:ninja\
**Created:** [September 11, 2020, 12:57pm UTC](https://discourse.cmake.org/t/cmake-3-14-ubunto-20-04-generator-ninja-does-not-support-platform-specification-but-platform-x64-was-specified/1820 "2020-09-11T12:57:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ProTur1](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/p/34f0e0/32.png) [@ProTur1](https://discourse.cmake.org/u/ProTur1)\
**Post date:** [September 11, 2020, 12:57pm UTC](https://discourse.cmake.org/t/cmake-3-14-ubunto-20-04-generator-ninja-does-not-support-platform-specification-but-platform-x64-was-specified/1820/1 "2020-09-11T12:57:08Z")

</div>

`Generator Ninja does not support platform specification, but platform x64 was specified.`  
Where to start looking for the above problem? Im setting `CMAKE_GENERATOR_PLATFORM` without problem when working with generator Windows VS, but now with qtcreator on Ubuntu, Im getting the above problem.

---

<div class="post-metadata">

**Author:** ![kyle.edwards](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/k/65b543/32.png) [@kyle.edwards](https://discourse.cmake.org/u/kyle.edwards)\
**Post date:** [September 11, 2020, 3:47pm UTC](https://discourse.cmake.org/t/cmake-3-14-ubunto-20-04-generator-ninja-does-not-support-platform-specification-but-platform-x64-was-specified/1820/2 "2020-09-11T15:47:25Z")

</div>

The difference is that the Visual Studio generators support setting the platform (the platform functionality was designed specifically for Visual Studio), but the Ninja generators do not. I would suggest only setting `CMAKE_GENERATOR_PLATFORM` when using Visual Studio.
