Undetermined doxygen version leads to fatal error although it is not required
CMake Warning at /share/cmake-3.12/Modules/FindDoxygen.cmake:431 (message):
Unable to determine doxygen version: No such file or directory
Call Stack (most recent call first):
/share/cmake-3.12/Modules/FindDoxygen.cmake:589 (_Doxygen_find_doxygen)
CMakeLists.txt:256 (find_package)
-- Could NOT find Doxygen: Found unsuitable version "", but required is at least "1.8.11" (found /usr/bin/doxygen)
CMake Error at /share/cmake-3.12/Modules/FindDoxygen.cmake:668 (message):
Unable to generate Doxyfile template: No such file or directory
Call Stack (most recent call first):
CMakeLists.txt:256 (find_package)
-- Configuring incomplete, errors occurred!
My code looks like this
find_package(Doxygen 1.8.11)
if (DOXYGEN_FOUND)
...
endif()
I think it should not proceed in using doxygen if the file was found the version doesn't match. I would have expected it to behave like if the version was lower than the required one.
I have no clue why it fails since the job which runs into this issues executes it twice (with different build folders) before it fails. I am using CMake 3.12.0 - I wasn't able to test it with a newer version as I ran into a different issues with 3.13.x which I haven't looked into yet.