Hello,

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.

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?

Thanks,

Steve.




-- 

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to