问题分析: 可能由VS的版本问题导致: CMake does not append the /std::c11 flag for older version of visual studio c compiler either. 解决方案: 更新Visual Studio(作者使用VS2019测试成功): “Visual Studio 2019 version 16.8”. /std::c11 is supported since then." Github原贴传送门