From 9790becb33b1eec2a644c9281fa66f40ae5aec0c Mon Sep 17 00:00:00 2001 From: Martino Ferrari Date: Mon, 12 Oct 2026 16:49:06 +0200 Subject: [PATCH] chore: ignore an in-tree configure's output `build/` only covers the directory the presets use, so `cmake -S . -B .` left CMakeFiles/, Makefile, cmake_install.cmake and the generated include/plot/version.hpp untracked in the repository root -- which shows up as dirty content in the parent project's status whenever the submodule is checked out. --- .gitignore | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitignore b/.gitignore index bfa809e..79c05bf 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,15 @@ build/ # Not this project's and not generated by it: a Solarus game-engine message that # happens to sit in the repo root. error.txt + +# An *in-tree* configure writes these beside the sources. `build/` above only covers the +# directory the presets use, and `cmake -S . -B .` leaves the whole of CMake's output in the +# repository root -- which then reads as an untracked submodule to whoever has it checked out. +CMakeFiles/ +CMakeCache.txt +cmake_install.cmake +Makefile +CTestTestfile.cmake +CPackConfig.cmake +# Configured from `include/plot/version.hpp.in`, so it is output and not a source file. +include/plot/version.hpp