Sharing CMake Profiles(for cross-compilation) between projects and users

已回答

 I have recently shared using CLion for C/C++ development of embedded linux applications that run on several embedded devices.

We use CMake toolchain files for cross compilations

I have created a CMake Profile (Under Build, Execution, Deployment > CMake) for each toolchain file.

I want to share this setting across all my projects and with other developers.

It looks like this setting is put in the .idea/workspace.xml file which I have seen is not recommended to version control because it changes a lot.

I saw a post for a trick:

* Check in the *.workspace to git repo

* After that add *.workspace to .gitignore and checked in the new .gitignore file to git repo

* Share with others

I would have to do this for each project, is there not a better way to do this with the Settings Repository plugin?

0

Hello! The Settings Repository feature that allows you to share your IDE settings. But File | Settings | Build, Execution, Deployment | CMake are project settings. Feel free to comment or upvote the feature request about possibility to share CMake options: https://youtrack.jetbrains.com/issue/CPP-7911.

0

请先登录再写评论。