The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15544 
====================================================================== 
Reported By:                Stephen Kelly
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15544
Category:                   CMake
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-04-29 22:24 CEST
Last Modified:              2015-04-29 22:24 CEST
====================================================================== 
Summary:                    Policy to require cmake_minimum_required() before
project()
Description: 

If a project() command is not written in used code, cmake will generate one. 
When invoked, it sets up the toolchain.

The cmake_minimum_required() command must appear before the project() 
command, so that the AppleClang compiler id may be set correctly, according 
to CMP0025.

Policy CMP0000 requires that the cmake_minimum_required() command must be 
used. That policy could be set to REQUIRED_ALWAYS in CMake 4.0. However, 
there would still be no enforcement of requiring the project() command to 
come after that.

 http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/9392

Additionally, issuing the commands in the wrong order means that use of the
CMAKE_MINIMUM_REQUIRED variable in files read via project() is not what is
expected.

 
http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/13094/focus=13120

A policy may be added requiring that the project() command be present and come
after cmake_minimum_required(), and generating the project() only in OLD
behavior.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-04-29 22:24 Stephen Kelly  New Issue                                    
======================================================================

-- 

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

Reply via email to