You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added support for relative git URLs to FetchContent/ExternalProject which was introduced in cmake v3.27 under policy CMP0150. Unfortunately, this doesn't seem to work when wrapped with CPM and it looks like this is because CPM minimum cmake version is set to 3.14.
I'm not sure on the best strategy here, but one option would be for CPM to inherit the policies from the parent project, and just assert that they're set at least to a minimum of 3.14 as CPM needs, rather than actually explicitly setting them to 3.14 as is currently the case. Alternatively, it should at least honour policy 150 and pass it through if it can.
Happy to submit a PR for this if there's a preferred solution.
The text was updated successfully, but these errors were encountered:
Hey, thanks for raising the issue, I agree that it would make sense for CPM to honour the new policy. Currently we handle overriding policies inside a dedicated macro (see here for discussion), which would be the preferred location to enable CMP0150. Would be very happy to review a PR for this!
I added support for relative git URLs to FetchContent/ExternalProject which was introduced in cmake v3.27 under policy CMP0150. Unfortunately, this doesn't seem to work when wrapped with CPM and it looks like this is because CPM minimum cmake version is set to 3.14.
I'm not sure on the best strategy here, but one option would be for CPM to inherit the policies from the parent project, and just assert that they're set at least to a minimum of 3.14 as CPM needs, rather than actually explicitly setting them to 3.14 as is currently the case. Alternatively, it should at least honour policy 150 and pass it through if it can.
Happy to submit a PR for this if there's a preferred solution.
The text was updated successfully, but these errors were encountered: