gitignore icon indicating copy to clipboard operation
gitignore copied to clipboard

CMake: Add CMakeUserPresets.json

Open KyleFromKitware opened this issue 5 years ago • 3 comments

Reasons for making this change:

CMake 3.19 added CMakePresets.json, which is intended to be version-controlled, and CMakeUserPresets.json, which should NOT be version-controlled. Add CMakeUserPresets.json to the gitignore.

Links to documentation supporting these rule changes:

https://cmake.org/cmake/help/latest/manual/cmake-presets.7.html

KyleFromKitware avatar Dec 07 '20 20:12 KyleFromKitware

Just dropping a comment from a user (me) that this seems fairly clear to review and I'd really like it, thanks in advance 👍

Also, this file may get autogenerated by conan, making the template more important for users who didn't expect it

Maarrk avatar Dec 11 '23 19:12 Maarrk

The last PR was merged 2 years ago, does this repo need to get permanently forked or will it be maintained again?

Croydon avatar Apr 25 '24 06:04 Croydon

For future reference personally, I moved over to use https://github.com/toptal/gitignore

The issue in this PR is already resolved there, they also give reasoning behind the fork

Maarrk avatar May 04 '24 11:05 Maarrk

+1 I was just browsing for some useful CMake gitignore template and it didn't have CMakeUserPresets.json in it. It seemed like a bit basic template until I've seen there are pull requests in the queue, so would be kind of good to merge this.

petk avatar May 14 '24 13:05 petk