CLion contexts and CMakeCache

荒凉一梦 提交于 2019-12-06 08:40:02
stkgn

!! please backup your project before applying my instructions !!

I have got the same problem after adding new target to the CMakeLists.txt

To solve this error:

Cannot generate 'Release' into .....<path>..... CMakeCache.txt is found in the project dir, only in-source generation will be performed.

I delete folders cmake-build-* and CMakeCache.txt

After it I have got next error (or something like this):

Error cmake cache

To solve this error I just restart the clion. Also sometimes I press File -> Reload CMake Project, but visually nothing happends.

As result I have got workable project.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!