[cmake-developers] Probable bug in message output from Modules/Platform/CYGWIN.cmake
Stephen Kelly
steveire at gmail.com
Wed Apr 29 16:25:04 EDT 2015
Alan W. Irwin wrote:
> On 2015-04-28 14:54-0700 Alan W. Irwin wrote:
>
>> Also, a spurious warning is probably not that big a deal, but if you
>> think the incorrect order of project(...) before
>> cmake_minimum_required(...) could lead to more serious issues now or
>> in the future as Platform code gets more and more complex, then I
>> suggest you implement some code for one of those commands that
>> enforces that order, subject, of course, to a policy so that you do
>> not introduce backwards incompatibilities with this change.
>
> Having thought about this some more, I am pretty sure what is going on
> is if any language support file refers to
> CMAKE_MINIMUM_REQUIRED_VERSION, then cmake_minimum_required must be
> called to define that variable before enabling languages (e.g., via
> project statements).
In addition to Brads documentation update, I filed
http://public.kitware.com/Bug/view.php?id=15544
about this.
Thanks,
Steve.
More information about the cmake-developers
mailing list