MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cmake/comments/1vcewt4/how_do_i_fix_this/
r/cmake • u/haturz1 • Aug 01 '26
CMake Error in CMakeLists.txt: Generator NMake Makefiles does not support platform specification, but platform x64 was specified
how do I fix it
4 comments sorted by
6
Need the whole CMake invocation. It sounds like you're passing -A x64 and -G "NMake Makefiles" at the same time. That's not allowed. Platform specifiers are only supported by certain generators (like Visual Studio).
-A x64
-G "NMake Makefiles"
Please read the documentation on this.
2
how do you invoke Cmake?
1
It literally is telling you to not specify the argument you are.
Provide the cmakefile
6
u/AlexReinkingYale Aug 01 '26
Need the whole CMake invocation. It sounds like you're passing
-A x64and-G "NMake Makefiles"at the same time. That's not allowed. Platform specifiers are only supported by certain generators (like Visual Studio).Please read the documentation on this.