Skip to content

[cmake] Fix version errors with modern cmake - #333

Open
tobil4sk wants to merge 2 commits into
HaxeFoundation:masterfrom
tobil4sk:fix/cmake-version-errors
Open

tobil4sk wants to merge 2 commits into
HaxeFoundation:masterfrom
tobil4sk:fix/cmake-version-errors

Conversation

@tobil4sk

Copy link
Copy Markdown
Member

Some of the dependencies set older minimum cmake versions that modern cmake no longer supports. This updates the ones were a fix is available, and adds workarounds where it is not.

The previously used versions of these libraries set minimum cmake
versions that modern cmake no longer supports.

See:
PCRE2Project/pcre2@c7364c4
libexpat/libexpat@899a775
apache/httpd@08138ac
APR and APR-util CMakeLists file still sets the minimum version to 2.8,
which is not compatible with modern cmake.

For now, no update for these libraries contains a fix, so we have to set
the CMAKE_POLICY_VERSION_MINIMUM flag to work around it.

See:
https://github.com/apache/apr/blob/1.7.6/CMakeLists.txt#L20
https://github.com/apache/apr-util/blob/1.6.5/CMakeLists.txt#L20
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.

1 participant