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