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. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
