CMAKE_LIST_FILE_NAME.rst 862 B

1234567891011121314151617181920212223
  1. CMAKE_LIST_FILE_NAME
  2. --------------------
  3. .. versionadded:: 3.32
  4. The name of the CMake project files. This determines the top-level file
  5. processed when CMake is configured, and the file processed by
  6. :command:`add_subdirectory`.
  7. By default, this is ``CMakeLists.txt``. If set to anything else,
  8. ``CMakeLists.txt`` will be used as a fallback whenever the specified file
  9. cannot be found within a project subdirectory.
  10. This variable reports the value set via the :option:`cmake --project-file`
  11. option. The value of this variable should never be set directly by projects or
  12. users.
  13. .. warning::
  14. The use of alternate project file names is intended for temporary use by
  15. developers during an incremental transition and not for publication of a final
  16. product. CMake will always emit a warning when the project file is anything
  17. other than ``CMakeLists.txt``.