Project warning since 3.15.0-rc1

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Project warning since 3.15.0-rc1

Volker Enderlein

I encapsulate the literal **project** call in a **macro** that is adding
some general settings required for every project setup.

This worked flawlessly and without warnings in the last CMake versions
since 3.4.

Beginning with CMake Version 3.15.0-rc1 the following warning pops up:

No project() command is present.  The top-level CMakeLists.txt file must
   contain a literal, direct call to the project() command.  Add a line of
   code such as


   near the top of the file, but after cmake_minimum_required().

   CMake is pretending there is a "project(Project)" command on the first

Is that a regression or is the required behavior more strictly enforced now?

Cheers, Volker


Powered by

Please keep messages on-topic and check the CMake FAQ at:

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support:
CMake Consulting:
CMake Training Courses:

Visit other Kitware open-source projects at

Follow this link to subscribe/unsubscribe: