CMP0065.rst 1.1 KB

123456789101112131415161718192021222324252627
  1. CMP0065
  2. -------
  3. Do not add flags to export symbols from executables without
  4. the :prop_tgt:`ENABLE_EXPORTS` target property.
  5. CMake 3.3 and below, for historical reasons, always linked executables
  6. on some platforms with flags like ``-rdynamic`` to export symbols from
  7. the executables for use by any plugins they may load via ``dlopen``.
  8. CMake 3.4 and above prefer to do this only for executables that are
  9. explicitly marked with the :prop_tgt:`ENABLE_EXPORTS` target property.
  10. The ``OLD`` behavior of this policy is to always use the additional link
  11. flags when linking executables regardless of the value of the
  12. :prop_tgt:`ENABLE_EXPORTS` target property.
  13. The ``NEW`` behavior of this policy is to only use the additional link
  14. flags when linking executables if the :prop_tgt:`ENABLE_EXPORTS` target
  15. property is set to ``True``.
  16. This policy was introduced in CMake version 3.4. Unlike most policies,
  17. CMake version |release| does *not* warn by default when this policy
  18. is not set and simply uses OLD behavior. See documentation of the
  19. :variable:`CMAKE_POLICY_WARNING_CMP0065 <CMAKE_POLICY_WARNING_CMP<NNNN>>`
  20. variable to control the warning.
  21. .. include:: DEPRECATED.txt