Skip to content

Commit 4555bae

Browse files
committed
better CMake .gitignore [skip ci]
1 parent e91501b commit 4555bae

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cmake/options.cmake

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,4 @@ if(CMAKE_PREFIX_PATH)
2121
get_filename_component(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ABSOLUTE)
2222
endif()
2323

24-
# --- auto-ignore build directory
25-
if(NOT EXISTS ${PROJECT_BINARY_DIR}/.gitignore)
26-
file(WRITE ${PROJECT_BINARY_DIR}/.gitignore "*")
27-
endif()
24+
file(GENERATE OUTPUT .gitignore CONTENT "*")

0 commit comments

Comments
 (0)