Skip to content

Commit 58c7de1

Browse files
authored
Merge pull request #129 from build-cpp/gitignore-improvement
Improve the default .gitignore that's generated
2 parents a61e4bb + 62609a0 commit 58c7de1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmake_generator.cpp

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

217217
// Generate .gitignore with reasonable defaults for CMake
218-
generate_gitfile(".gitignore", {"build*/", "cmake-build*/", ".idea/", ".vscode/"});
218+
generate_gitfile(".gitignore", {"build*/", "cmake-build*/", "CMakerLists.txt", "CMakeLists.txt.user"});
219219

220220
tsl::ordered_map<std::string, std::string> variables = {
221221
{"@name", name},

0 commit comments

Comments
 (0)