[cmake-developers] Policy to require project()
Brad King
brad.king at kitware.com
Mon Feb 17 10:35:02 EST 2014
On 02/15/2014 05:56 AM, Stephen Kelly wrote:
> If a project() command is not written in used code, cmake will generate one.
Historically this was meant to keep the hello-world example down to just
a single line calling add_executable. With the modern complexities of
project() and cmake_minimum_required() functionality perhaps it is time
to drop that goal.
> Does it make sense to add a policy to CMake 3.0 requiring that the project()
> command be present and come after cmake_minimum_required(), and generating
> the project() only in OLD behavior?
I'd like to wait until after 3.0 for that.
-Brad
More information about the cmake-developers
mailing list