Skip to content

Conversation

@moha-gh
Copy link
Contributor

@moha-gh moha-gh commented Jun 23, 2025

With CMake 4+, the initial CMake run fails with

CMake Error at doc/CMakeLists.txt:18 (ADD_DEPENDENCIES):
  The dependency target "doc-c" of target "doc" does not exist.

in case Doxygen is not installed on the system, since non-existent dependencies
are not ignored anymore (see 0). Rectify that by making sure that we only add
the dependency in case Doxygen has been found.

moha-gh added 2 commits June 23, 2025 09:42
With CMake 4+, the initial CMake run fails with

    CMake Error at doc/CMakeLists.txt:18 (ADD_DEPENDENCIES):
      The dependency target "doc-c" of target "doc" does not exist.

in case Doxygen is not installed on the system, since non-existent dependencies
are not ignored anymore (see [0]). Rectify that by making sure that we only add
the dependency in case Doxygen has been found.

[0]: https://cmake.org/cmake/help/latest/policy/CMP0046.html
... as part of my first contribution to the project.
@ppisar ppisar self-assigned this Jun 23, 2025
Copy link
Contributor

@ppisar ppisar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why to obfuscate you e-mail address in AUTHORS file when it is in git log. But never mind.

@ppisar ppisar merged commit f951591 into rpm-software-management:master Jun 23, 2025
6 of 7 checks passed
@moha-gh
Copy link
Contributor Author

moha-gh commented Jun 23, 2025

I'm not sure why to obfuscate you e-mail address in AUTHORS file when it is in git log. But never mind.

Oh well, I guess I just went along with what others had done without thinking too much 😁

@moha-gh moha-gh deleted the mh/cmake-build-without-doxygen branch June 23, 2025 11:36
@moha-gh
Copy link
Contributor Author

moha-gh commented Jun 23, 2025

@ppisar : Are there any plans for a new release to ship the other CMake 4+ related fixes that went in recently and this one? That would come in handy since I'm trying to get CMake bumped to 4+ in Yocto (which ships createrepo_c).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants