CMake Generation Path (Revert back to 1.2 way) and CMake Build type
已回答
Is there a way to revert back to 1.2's way of building the CMake generation path into the cache directory, or a randomly generated directory in the .CLion folder?
I understand why it was changed to be settable, but having it default to the project directory and seeing multiple new folders (per CMake build type) after building in all of our projects is not preferred option, especially with our team working on projects simultaneously (and we all just upgraded).
Also, what is the purpose of the CMake build type combo box in the Run / Debug configurations now that the CMake build type is globally settable in the CMake options in settings.
Is there a way to utilize the Run / Debug configuration rather than the global setting?
请先登录再写评论。
We've published CLion 2016.3.2 EAP build, which includes an ability to add CMake configurations. Check our blog post for more details: https://blog.jetbrains.com/clion/2016/12/clion-2016-3-2-eap/#cmake. And let us know if the solution fits your workflow.
As for the second part of your question, for now, you can change the generation directory once per project via `Generation path` on the `File | Settings | Build, Execution, Deployment | CMake` tab. Hopefully, defaults will be implemented soon: https://youtrack.jetbrains.com/issue/CPP-1887. Please comment or upvote.