split workspace.xml
Hi all,
I'm new to CLion. First of all, it looks and feels very good. This IDE is definitely switch-to material.
I have a quite pesky problem tho. I set some cmake `-DXXX` flags, but they all get stored to workspace.xml. That file accumulates way too much stuff, and should be split into parts that are critical for the project compile and run state, and parts that are not (like UI)
For example, it mixes saved UI state (like windows positions, flags on them, etc) with things that are critical to the build itself (my `-DXXX` parameters).
Needless to say, those cmake params fall into a completely different category, a category which is usually put into the versioning system (git for example). So all the team members will not hit 1001 coffee tables in the dark, while trying to reach the door that says "it compiles" :)
Almost every time I exit the IDE, I see that file changed. That is very git-unfriendly
Thank you all for this great IDE!
请先登录再写评论。
Hello! Thank you for the feedback.
The workspace.xml file contains your workspace preferences. CMake profile contains settings which are related to your workspace ("generation path", for example), that's why CMake profiles are stored in workspace.xml.
Please note that in general workspace.xml contains some user specific data, so it's not intended to be shared with other team members.
Feel free to comment or upvote the feature request about possibility to share CMake options: https://youtrack.jetbrains.com/issue/CPP-7911.
Got it. Thanks
I just ran into the same situation. I need to share all cmake settings including generators, build paths (relative), etc. within the project. For command line usage I do it with an python script.