how to switch project from meson to Makefile and back again?
Answered
I have a project that was an autotools / Makefile build, but has been partially switched to meson. Now clion has seen the meson.build file, it is stuck like that.
During this development phase from Makefile to meson, it would be useful to be able to build in both. However clion says it is already configured, and can't see the existing Makefiles. How to switch over?
Thanks
Please sign in to leave a comment.
Hello!
Unfortunately, there is no convenient way to do that at the moment, since there are no IDE actions to unload a Makefile or Meson project. Here is a feature request about unloading a Makefile project - CPP-24473. Feel free to create a similar one for Meson.
For now, to change the project model in CLion, you need to close the project (File | Close Project), rename the
.idea
subdirectory, and open the project again. The.idea
subdirectory contains the project settings.