[cmake-developers] different behavior of cmake_minimum_required(3.0) and 3.1
Rolf Eike Beer
eike at sf-mail.de
Tue Mar 19 11:57:29 EDT 2019
Am Montag, 18. März 2019, 14:45:15 CET schrieb Brad King:
> On 3/15/19 6:10 PM, Rolf Eike Beer wrote:
> > I suspected it was a policy thing, so I tried this:
> >
> > foreach(_p RANGE 21 54)
> >
> > cmake_policy(SET CMP00${_p} OLD)
> >
> > endforeach()
>
> Only policies 51-54 were added between 3.0 and 3.1. I suggest
> testing with
>
> cmake_minimum_required(VERSION 3.0)
> cmake_policy(SET CMP0051 NEW)
> cmake_policy(SET CMP0052 NEW)
> cmake_policy(SET CMP0053 NEW)
> cmake_policy(SET CMP0054 NEW)
>
> and then trying different combinations. My guess is CMP0054.
It has nothing to do with either the policies or the order of
cmake_minimum_required() and project(). If I require version 3.0 it works,
with 3.1 it fails.
Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part.
URL: <https://cmake.org/pipermail/cmake-developers/attachments/20190319/5dd5acb5/attachment.sig>
More information about the cmake-developers
mailing list