[CMake] Policy CMP0063 is not set: Honor visibility properties for all target
Alexander Shukaev
cmake at Alexander.Shukaev.name
Sat Jun 18 03:34:12 EDT 2016
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.
Target of type "EXECUTABLE" has the following visibility
properties set for CXX:
CXX_VISIBILITY_PRESET
VISIBILITY_INLINES_HIDDEN
For compatibility CMake is not honoring them for this target.
Is this a bug? Thanks in advance.
Regards,
Alexander
More information about the CMake
mailing list