Then it is odd that it does not work, the warning is given during generation time and I have tested to print the status of the 0028 policy at all points where the projects that get the warning has their add_library/add_executable command called, as well as at the end of their respective CMakeLists.txt files and it remains in the state OLD throughout. At which point is the state of the policy stored when it comes to generation time? I can see that it works when I construct a minimal example, so knowing when it's state is 'used' would greaty help in solving the issue or creating a minimal example that showcases the problem.
Regards, Pierre Andersson From: Nils Gladitz <nilsglad...@gmail.com> To: pierre.anders...@se.atlascopco.com Cc: cmake@cmake.org Date: 2014-07-11 14:32 Subject: Re: [CMake] Setting Policy CMP0028 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