Skip to content

CMakeLists: Adjust for CMake 4.0's removal of deprecated syntax. #1140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

renodr
Copy link

@renodr renodr commented Apr 3, 2025

CMake 4.0 is more strict than previous versions, and has enforced removals of deprecated syntax. Compatibility with versions of CMake prior to 3.5 is no longer permitted either, so we'll change it to say 4.0 to fix that problem. After that, the custom commands for generating the manual page need to be adjusted as CMake now needs to know when to run commands, so we will generate the manual page after the package is built by passing POST_BUILD to the custom commands.

Tested with CMake 4.0 and 3.31.6.

Fixes #1139

CMake 4.0 is more strict than previous versions, and has enforced
removals of deprecated syntax. Compatibility with versions of CMake
prior to 3.5 is no longer permitted either, so we'll change it to say
4.0 to fix that problem. After that, the custom commands for generating
the manual page need to be adjusted as CMake now needs to know when to
run commands, so we will generate the manual page after the package is
built by passing POST_BUILD to the custom commands.

Tested with CMake 4.0 and 3.31.6.
@a17r
Copy link

a17r commented Apr 13, 2025

Why don't you simply raise the minimum to something >=3.5, or >=3.10 (to get rid of yet another deprecation warning)?

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.

tidy-html5 fails to build with CMake 4.0
2 participants