Skip to content

Commit 43c7216

Browse files
authored
Merge pull request #200 from de-ep/gitignore-CMKR_BUILD_DIR
Automatically create .gitignore in CMAKE_BINARY_DIR
2 parents 26acf23 + ef3c1a2 commit 43c7216

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cmake/cmkr.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ if(CMAKE_SCRIPT_MODE_FILE)
1010
set(CMAKE_BINARY_DIR "${CMAKE_BINARY_DIR}/build")
1111
set(CMAKE_CURRENT_BINARY_DIR "${CMAKE_BINARY_DIR}")
1212
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}")
13+
file(WRITE "${CMAKE_BINARY_DIR}/.gitignore" "# This file is autogenerated by cmkr.\n*\n")
1314
endif()
1415

1516
# Set these from the command line to customize for development/debugging purposes

0 commit comments

Comments
 (0)