问题描述
cmake 源码编译出现错误 “The C++ compiler does not support C++11 (e.g. std::unique_ptr)”
原因:
linux 操作系统下, 当cmake源码所在位置为挂载盘(mount), 且挂载盘位于不同的服务器, 此时如果出现挂载盘服务器与当前服务器时间不同步, 编译cmake源码则会报上述错误。
解决办法1:
同步时间
解决办法2:
将cmake源码放置在非挂载盘
参考文章:
https://thelinuxcluster.com/2021/10/01/the-c-compiler-does-not-support-c11-during-bootstrap-for-cmake/