mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 11:25:33 +00:00
build: ignore out-of-source build folder #33191
Create a .gitignore file inside a build folder. This way this folder will be ignored by git and hence, no entry in the root .gitignore is required. For more information see this post: https://www.scivision.dev/cmake-auto-gitignore-build-dir/
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -10,7 +10,6 @@ compile_commands.json
|
|||||||
/.idea/
|
/.idea/
|
||||||
|
|
||||||
# Build/deps dir
|
# Build/deps dir
|
||||||
/build/
|
|
||||||
/.deps/
|
/.deps/
|
||||||
/tmp/
|
/tmp/
|
||||||
/.clangd/
|
/.clangd/
|
||||||
|
|||||||
@@ -35,6 +35,11 @@ include(InstallHelpers)
|
|||||||
include(PreventInTreeBuilds)
|
include(PreventInTreeBuilds)
|
||||||
include(Util)
|
include(Util)
|
||||||
|
|
||||||
|
if(NOT PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR)
|
||||||
|
# Auto-create a .gitignore in the specified "build" directory.
|
||||||
|
file(GENERATE OUTPUT .gitignore CONTENT "*")
|
||||||
|
endif()
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# User settings
|
# User settings
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user