[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] Is this an intended change to cmake behavior in cmake 3.12?
From:       Brad King <brad.king () kitware ! com>
Date:       2018-07-24 14:28:05
Message-ID: f930ca4e-e752-4039-f49a-3220d28ad015 () kitware ! com
[Download RAW message or body]

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

Thanks.  I opened an issue for it:

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

Please see that issue for further discussion.

> See the =93test_project2=94 macro in CMakeLists.txt? Simply uncomment it.
> Even though it isn=92t called, uncommenting that macro causes the
> =93Policy CMP0048=94 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 in=
formation 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/opensour=
ce/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic