CMP0006.rst 1.1 KB

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