On 08/19/2016 11:18 AM, Robert Bielik wrote:
Hi,
I'm currently using CMake 3.5.0 and I get TONS of CMP0054 policy warnings. So I
set the policy:
cmake_policy(SET CMP0054 OLD)
in top level CMakeLists.txt file. Nothing happens. I STILL get TONS of warnings.
Help ?
cmake_minimum_required(VERSION) resets all policies to match the given
version.
So either set the policy after any cmake_minimum_required(VERSION) call,
or don't set this specific policy at all and increase your minimum
required version to at least 3.1 (will implicitly set the policy to NEW),
or fix (work around) the ambiguities that the policy warnings point to.
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