On 07/20/2018 11:48 AM, Buster, James wrote:
> Using cmake 3.12: the second “cmake .” issues the following warning:
> CMake Warning (dev) in CMakeLists.txt:
>   Policy CMP0048 is not set: project() command manages VERSION variables.

Thanks.  I opened an issue for it:

  https://gitlab.kitware.com/cmake/cmake/issues/18202

Please see that issue for further discussion.

> See the “test_project2” macro in CMakeLists.txt? Simply uncomment it.
> Even though it isn’t called, uncommenting that macro causes the
> “Policy CMP0048” warning to disappear.

If no project() command appears anywhere in the top-level CMakeLists.txt
file then one is injected on line zero.  That is the one that causes
the warning.  When it is present in the inline macro then no injection
is done.  It's strange but that's how things evolved.

-Brad
-- 

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:
https://cmake.org/mailman/listinfo/cmake

Reply via email to