Skip to content

Commit 2551b1b

Browse files
committed
cmake: remove support for creating tags
We currently have support for generating tags via ctags as part of our build system. We aren't really in the place of supporting any tooling that exists apart from the actual build environment, as doing so adds additional complexity and maintenance burden to our build instructions. This is in fact nicely demonstrated by this particular option, as it hasn't been working anymore since commit e5c9723 (cmake: move library build instructions into subdirectory, 2017-06-30). As a result, this commit removes support for building CTags
1 parent bc02bcd commit 2551b1b

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

CMakeLists.txt

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ OPTION(THREADSAFE "Build libgit2 as threadsafe" ON)
4949
OPTION(BUILD_CLAR "Build Tests using the Clar suite" ON)
5050
OPTION(BUILD_EXAMPLES "Build library usage example apps" OFF)
5151
OPTION(BUILD_FUZZERS "Build the fuzz targets" OFF)
52-
OPTION(TAGS "Generate tags" OFF)
5352
OPTION(PROFILE "Generate profiling information" OFF)
5453
OPTION(ENABLE_TRACE "Enables tracing support" ON)
5554
OPTION(LIBGIT2_FILENAME "Name of the produced binary" OFF)
@@ -310,25 +309,6 @@ IF (BUILD_CLAR)
310309
ADD_SUBDIRECTORY(tests)
311310
ENDIF ()
312311

313-
IF (TAGS)
314-
FIND_PROGRAM(CTAGS ctags)
315-
IF (NOT CTAGS)
316-
MESSAGE(FATAL_ERROR "Could not find ctags command")
317-
ENDIF ()
318-
319-
FILE(GLOB_RECURSE SRC_ALL *.[ch])
320-
321-
ADD_CUSTOM_COMMAND(
322-
OUTPUT tags
323-
COMMAND ${CTAGS} -a ${SRC_ALL}
324-
DEPENDS ${SRC_ALL}
325-
)
326-
ADD_CUSTOM_TARGET(
327-
do_tags ALL
328-
DEPENDS tags
329-
)
330-
ENDIF ()
331-
332312
IF (BUILD_EXAMPLES)
333313
ADD_SUBDIRECTORY(examples)
334314
ENDIF ()

0 commit comments

Comments
 (0)