Skip to content

cmake: Pin policies to the only CMake version - #143

Merged
hebasto merged 1 commit into
cmake-stagingfrom
240405-cmake-DF
Apr 11, 2024
Merged

hebasto merged 1 commit into
cmake-stagingfrom
240405-cmake-DF

Conversation

@hebasto

@hebasto hebasto commented Apr 5, 2024

Copy link
Copy Markdown
Owner

This PR disables CMake policies available in versions newer than 3.22, which means that for any CMake version >= 3.22, its all policies will be set as if version == 3.22.

The CMP0141 policy is enabled opportunistically, and is used along with ccache for MSVC builds.

The user still able to enforce any police they want with CMAKE_POLICY_DEFAULT_CMP<NNNN> variables.

This topic was discussed during the call on 2024-04-04.

@hebasto

hebasto commented Apr 5, 2024

Copy link
Copy Markdown
Owner Author

@pablomartin4btc pablomartin4btc left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

cr utACK fe322cf

Checked the doc links provided and the code change.

@theuni theuni left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ACK fe322cf

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.

3 participants