On 18.06.2016 09:34, Alexander Shukaev wrote:
Hello,

CMake 3.5.2 here. Why explicitly setting the CMP0063 policy to NEW does not suppress the warning and actually use that new policy? That is

if(POLICY CMP0063)
  cmake_policy(SET CMP0063 NEW)
endif()

and I still get

  Policy CMP0063 is not set: Honor visibility properties for all target
  types.  Run "cmake --help-policy CMP0063" for policy details. Use the
  cmake_policy command to set the policy and suppress this warning.

Did you call cmake_minimum_required(VERSION) after setting that policy?
That would reset all policies based on the requested version.

Otherwise did you set the policy before creating your targets and in a scope that is parent to all targets involved?

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