1CMP0063 2------- 3 4.. versionadded:: 3.3 5 6Honor visibility properties for all target types. 7 8The :prop_tgt:`<LANG>_VISIBILITY_PRESET` and 9:prop_tgt:`VISIBILITY_INLINES_HIDDEN` target properties affect visibility 10of symbols during dynamic linking. When first introduced these properties 11affected compilation of sources only in shared libraries, module libraries, 12and executables with the :prop_tgt:`ENABLE_EXPORTS` property set. This 13was sufficient for the basic use cases of shared libraries and executables 14with plugins. However, some sources may be compiled as part of static 15libraries or object libraries and then linked into a shared library later. 16CMake 3.3 and above prefer to honor these properties for sources compiled 17in all target types. This policy preserves compatibility for projects 18expecting the properties to work only for some target types. 19 20The ``OLD`` behavior for this policy is to ignore the visibility properties 21for static libraries, object libraries, and executables without exports. 22The ``NEW`` behavior for this policy is to honor the visibility properties 23for all target types. 24 25This policy was introduced in CMake version 3.3. CMake version 26|release| warns when the policy is not set and uses ``OLD`` behavior. Use 27the :command:`cmake_policy()` command to set it to ``OLD`` or ``NEW`` 28explicitly. 29 30.. include:: DEPRECATED.txt 31