codesniffer
codesniffer

Reputation: 1170

Building Doxygen from source now requires Git? Can this be skipped?

I'm upgrading from Doxygen 1.8.11 to 1.8.16, both built from source on Linux (Ubuntu 18.04 in this case, but expected across various distros and versions going back at least to 2014), and I'm getting this error:

...

-- Performing Test ICONV_ACCEPTS_NONCONST_INPUT
-- Performing Test ICONV_ACCEPTS_NONCONST_INPUT - Success
-- Performing Test ICONV_ACCEPTS_CONST_INPUT
-- Performing Test ICONV_ACCEPTS_CONST_INPUT - Failed
CMake Error at /home/<snip/>/build64/share/cmake-3.4/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find Git (missing: GIT_EXECUTABLE)
Call Stack (most recent call first):
  /home/<snip/>/build64/share/cmake-3.4/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  /home/<snip/>/build64/share/cmake-3.4/Modules/FindGit.cmake:77 (find_package_handle_standard_args)
  cmake/git_watcher.cmake:72 (find_package)
  libversion/CMakeLists.txt:11 (include)


-- Configuring incomplete, errors occurred!

Seems that building Doxygen from source now expects a Git executable. I'd like to avoid adding another dependency to our build notes. What does it need Git for, and can I bypass it?

[EDIT: Looks like Doxygen 1.8.15 builds fine without Git, so this change was introduced in 1.8.16 (the current latest release). ]

Upvotes: 1

Views: 259

Answers (1)

albert
albert

Reputation: 9057

For the 1.8.16 version git is required but in the master version this restriction has been lifted:

The fix consists of removing the word "REQUIRED" in cmake/git_watcher.cmake so the line:

    find_package(Git QUIET REQUIRED)

will be:

    find_package(Git QUIET)

Upvotes: 1

Related Questions