解决方案: 编译选项加入: -DCMAKE_C_COMPILER_FORCED=ON 详见:https://blog.csdn.net/weixin_62574358/article/details/132597271