Skip to content

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