I get the following error message in CLion IDE.
Cannot generate 'Release' into /home/jdoe/project/cmake-build-release
CMakeCache.txt is found in the project dir, only in-source generation will be performed.
Nothing in Google helps me using the following keywords:
What is the best way to resume being able to make CLion start using CMakeFiles.txt again (without doing the painful but obvious way of recreating a new project)?
Side note: Any tip on how to improve search of this error message is also welcome.
[Update 1] There is a "non-answer" in StackOverflow.
This is the only reliable workaround to that thorny CLion cmake problem.
The brutal workaround is to perform:
cmake-build-*
CMakeCache.txt
Tools
menu item, CMake
submenu item, and clicking on Unload CMake project
.Project
left navigation panel, right-click on CMakeFiles.txt
to bring up context menu. Select 'Load CMake project`.Also tracking this specific bug at JetBrain (maker of CLion) YouTrack bug tracking website.