[PATCH] D93167: [NFC] Add CMakeUserPresets.json filename to .gitignore

Balázs Benics via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 12 12:55:45 PST 2020


steakhal created this revision.
steakhal added reviewers: echristo, jyknight, beanz, stephenkelly.
Herald added a subscriber: martong.
steakhal requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

CMake 3.19 introduced the `preset`s.
Quoting the documentation:

> `CMakePresets.json` may be checked into a version control system, and `CMakeUserPresets.json` **should NOT be checked in**.

We will ignore the `CMakeUserPresets.json` file if that is present at the root of a subproject.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D93167

Files:
  .gitignore


Index: .gitignore
===================================================================
--- .gitignore
+++ .gitignore
@@ -21,6 +21,9 @@
 #OS X specific files.
 .DS_store
 
+# Ignore the user specified CMake presets in subproject directories.
+/*/CMakeUserPresets.json
+
 # Nested build directory
 /build*
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93167.311408.patch
Type: text/x-patch
Size: 305 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201212/1db64f78/attachment.bin>


More information about the llvm-commits mailing list