Skip to content

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

Open
renodr wants to merge 1 commit into
htacg:nextfrom
renodr:renodr-adjust-cmakelists-for-cmake4
Open

CMakeLists: Adjust for CMake 4.0's removal of deprecated syntax.#1140
renodr wants to merge 1 commit into
htacg:nextfrom
renodr:renodr-adjust-cmakelists-for-cmake4

Conversation

@renodr

@renodr renodr commented Apr 3, 2025

Copy link
Copy Markdown

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

a17r commented Apr 13, 2025

Copy link
Copy Markdown

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