CMP0006.rst 1.1 KB

123456789101112131415161718192021222324
  1. CMP0006
  2. -------
  3. Installing :prop_tgt:`MACOSX_BUNDLE` targets requires a ``BUNDLE DESTINATION``.
  4. This policy determines whether the :command:`install(TARGETS)` command must be
  5. given a ``BUNDLE DESTINATION`` when asked to install a target with the
  6. :prop_tgt:`MACOSX_BUNDLE` property set. CMake 2.4 and below did not distinguish
  7. application bundles from normal executables when installing targets.
  8. CMake 2.6 provides a ``BUNDLE`` option to the :command:`install(TARGETS)`
  9. command that specifies rules specific to application bundles on the Mac.
  10. Projects should use this option when installing a target with the
  11. :prop_tgt:`MACOSX_BUNDLE` property set.
  12. The ``OLD`` behavior for this policy is to fall back to the
  13. ``RUNTIME DESTINATION`` if a ``BUNDLE DESTINATION`` is not given. The ``NEW``
  14. behavior for this policy is to produce an error if a bundle target is installed
  15. without a ``BUNDLE DESTINATION``.
  16. This policy was introduced in CMake version 2.6.0. CMake version
  17. |release| warns when the policy is not set and uses ``OLD`` behavior. Use
  18. the :command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` explicitly.
  19. .. include:: DEPRECATED.txt