Somehow my project has been corrupted and I cannot build a target as CLion tells me "Product not found for target ..." (for every target). The target is there because the Build All function still works and the targets are build, but I can't select them in the edit configuration dialog for build/run
I've wiped the cache, removed the build tree form ~/Library/Caches/... and manually deleted as many files as I can - but I'm terrified of deleting info related to other projects that are not corrupted. If I try to recreate/reimport the project, it picks up the same project name from cmake and re-finds all the information about the old project. There does not appear to be a way of removing a project and starting afresh.
I manaully deleted the target from the config dialog, and now they're gone and I can't get them back.
My only solution is to rename the project in CMakeLists and create it from new with the new name.Surely there's a better way?