Skip to content
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

CMake: add a policy_max to cmake_minimum_required(), and remove obsolete cmake_policy() statements #4001

Closed
wants to merge 2 commits into from

Conversation

rouault
Copy link
Member

@rouault rouault commented Jan 14, 2024

No description provided.

@mwtoews
Copy link
Member

mwtoews commented Jan 14, 2024

With regard to the googletest changes, wouldn't it make more sense to use FetchContent described here? Some of the relevant changes were previously in commits from PR 3997 (but some of these changes were backed out). The method used in PROJ was based on an old version of the guide before FetchContent was available.

@rouault
Copy link
Member Author

rouault commented Jan 14, 2024

With regard to the googletest changes, wouldn't it make more sense to use FetchContent described here?

yes probably. I didn't want to change that, but changing cmake_minimum_required(VERSION 3.16) to cmake_minimum_required(VERSION 3.16...3.28) caused warnings in the googletest stuff. And now there's this mysterious error with MacOS build. I'm going to close this PR for now to let other changes slip in before

@rouault rouault closed this Jan 14, 2024
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.

2 participants