CMP0047.rst 1.3 KB

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