CMP0047.rst 1.3 KB

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