CMAKE_PROJECT_INCLUDE.rst 881 B

123456789101112131415161718192021
  1. CMAKE_PROJECT_INCLUDE
  2. ---------------------
  3. .. versionadded:: 3.15
  4. A CMake language file to be included as the last step of all
  5. :command:`project` command calls. This is intended for injecting custom code
  6. into project builds without modifying their source. See :ref:`Code Injection`
  7. for a more detailed discussion of files potentially included during a
  8. :command:`project` call.
  9. .. versionadded:: 3.29
  10. This variable can be a :ref:`semicolon-separated list <CMake Language Lists>`
  11. of CMake language files to be included sequentially. It can also now refer to
  12. module names to be found in :variable:`CMAKE_MODULE_PATH` or as a builtin
  13. CMake module.
  14. See also the :variable:`CMAKE_PROJECT_<PROJECT-NAME>_INCLUDE`,
  15. :variable:`CMAKE_PROJECT_<PROJECT-NAME>_INCLUDE_BEFORE`,
  16. :variable:`CMAKE_PROJECT_INCLUDE_BEFORE`, and
  17. :variable:`CMAKE_PROJECT_TOP_LEVEL_INCLUDES` variables.