更新时间:2022-12-22 09:04:26
CMake问题# 16259:当混合使用64/32位clang和Visual Studio Environment时,忍者生成器在clang-cl中失败" 建议利用环境变量:
Ninja生成器要求已经为编译器配置了环境,以生成所需的目标.你需要做
The Ninja generator requires that the environment already be configured for the compiler to produce the desired target. You need to do
>set CC=clang-cl
>set CFLAGS=-m32
>set CXX=clang-cl
>set CXXFLAGS=-m32
告诉CMake如何为所需目标调用编译器.
to tell CMake how to invoke the compiler for the desired target.