解决方法在clion上选择Tool | CMake | "Reset cache and reload project". 转载于:https://www.cnblogs.com/orangezs/p/8453918.html