针对你遇到的CMake错误:“error: generator platform: x64 does not match the platform used”,这里有几个可能的解决方案和检查步骤。请按照以下建议逐一尝试: 确认CMake命令中的生成器平台设置: 确保你在运行CMake时明确指定了正确的生成器平台。例如,如果你是在Windows上构建64位应用,你应该使用类似以下的命令: ...
The CMake helper in the build method chose the generator of "Visual Studio 15 2017 Win64" based on arch = x86_64, which CMake errors out on when CMAKE_GENERATOR_PLATFORM is defined as "x64", ala the CMakeToolchain generator. So the default CMake helper is incompatible with the ...