Skip to content

Commit 15886fc

Browse files
committed
Add CMakeUserPresets.json to generated .gitignore
1 parent d5e34b0 commit 15886fc

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/cmake_generator.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,13 @@ void generate_project(const std::string &type) {
255255
generate_gitfile(".gitattributes", {"/**/CMakeLists.txt linguist-generated", "/**/cmkr.cmake linguist-vendored"});
256256

257257
// Generate .gitignore with reasonable defaults for CMake
258-
generate_gitfile(".gitignore", {"build*/", "cmake-build*/", "CMakerLists.txt", "CMakeLists.txt.user"});
258+
generate_gitfile(".gitignore", {
259+
"build*/",
260+
"cmake-build*/",
261+
"CMakerLists.txt",
262+
"CMakeLists.txt.user",
263+
"CMakeUserPresets.json",
264+
});
259265

260266
tsl::ordered_map<std::string, std::string> variables = {
261267
{"@name", name},

0 commit comments

Comments
 (0)