更新时间:2022-12-08 11:22:14
不熟悉 CMake
,但是常见问题中的一种方法 如何使用其他编译器? 可能有帮助。我猜猜预制的Windows二进制文件不知道你使用什么编译器,所以它必须依赖 CC
和 CXX
环境变量。
I'm unfamiliar with CMake
, but one of the methods in the FAQ How do I use a different compiler? may help. I'm guessing that the pre-built Windows binary can't know what compiler you're using, so it has to rely on the CC
and CXX
environment variables.