CMP0006.rst 1.0 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. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 2.6.0
  17. .. |WARNS_OR_DOES_NOT_WARN| replace:: warns
  18. .. include:: STANDARD_ADVICE.txt
  19. .. include:: DEPRECATED.txt