1CMP0047
2-------
3
4Use ``QCC`` compiler id for the qcc drivers on QNX.
5
6CMake 3.0 and above recognize that the QNX qcc compiler driver is
7different from the GNU compiler.
8CMake now prefers to present this to projects by setting the
9:variable:`CMAKE_<LANG>_COMPILER_ID` variable to ``QCC`` instead
10of ``GNU``.  However, existing projects may assume the compiler id for
11QNX qcc is just ``GNU`` as it was in CMake versions prior to 3.0.
12Therefore this policy determines for QNX qcc which compiler id to
13report in the :variable:`CMAKE_<LANG>_COMPILER_ID` variable after
14language ``<LANG>`` is enabled by the :command:`project` or
15:command:`enable_language` command.  The policy must be set prior
16to the invocation of either command.
17
18The ``OLD`` behavior for this policy is to use the ``GNU`` compiler id
19for the qcc and QCC compiler drivers. The ``NEW`` behavior for this policy
20is to use the ``QCC`` compiler id for those drivers.
21
22This policy was introduced in CMake version 3.0.  Use the
23:command:`cmake_policy` command to set this policy to ``OLD`` or ``NEW``
24explicitly.  Unlike most policies, CMake version |release| does *not* warn
25by default when this policy is not set and simply uses ``OLD`` behavior.
26See documentation of the
27:variable:`CMAKE_POLICY_WARNING_CMP0047 <CMAKE_POLICY_WARNING_CMP<NNNN>>`
28variable to control the warning.
29
30.. include:: DEPRECATED.txt
31