Compare commits

...

2 Commits

Author SHA1 Message Date
Duncan Ogilvie 43c72160b5 Merge pull request #200 from de-ep/gitignore-CMKR_BUILD_DIR
Automatically create .gitignore in CMAKE_BINARY_DIR
2026-06-03 20:22:25 +02:00
deep ef3c1a288a Automatically create .gitignore in CMAKE_BINARY_DIR 2026-06-03 23:30:33 +08:00
+1
View File
@@ -10,6 +10,7 @@ if(CMAKE_SCRIPT_MODE_FILE)
set(CMAKE_BINARY_DIR "${CMAKE_BINARY_DIR}/build") set(CMAKE_BINARY_DIR "${CMAKE_BINARY_DIR}/build")
set(CMAKE_CURRENT_BINARY_DIR "${CMAKE_BINARY_DIR}") set(CMAKE_CURRENT_BINARY_DIR "${CMAKE_BINARY_DIR}")
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}") file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}")
file(WRITE "${CMAKE_BINARY_DIR}/.gitignore" "# This file is autogenerated by cmkr.\n*\n")
endif() endif()
# Set these from the command line to customize for development/debugging purposes # Set these from the command line to customize for development/debugging purposes