On 07/11/2014 01:33 PM, pierre.anders...@se.atlascopco.com wrote:
Thanks for the response. None of those are called in the CMakeLists.txt
file that the warning is issued for, they are both called in a file
above that one  in the build tree but said file also sets the CML0028
policy afterwards. Is it possible that a call to cmake_minimum_required
resets the policies even for CMakeLists.txt that are not below it in the
build system tree?

You can not change policies for the parent; only for the current and subdirectories.

It might help if you could create a minimal, selfcontained test case to reproduce and debug the issue.

Nils

--

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:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to