rename-cmakelists.rst 775 B

123456789101112
  1. Option to specify alternate CMakeLists filename
  2. -----------------------------------------------
  3. * Adds :option:`cmake --project-file` option to specify an alternate filename
  4. for CMakeLists files. This determines the top-level file processed when CMake
  5. is configured, and the file processed by :command:`add_subdirectory`. By
  6. default, this is ``CMakeLists.txt``. If set to anything else,
  7. ``CMakeLists.txt`` will be used as a fallback if the given file cannot be
  8. found within a project subdirectory. The use of alternate project file names
  9. is intended for temporary use by developers during an incremental transition
  10. and not for publication of a final product. CMake will always emit a warning
  11. when the project file is anything other than ``CMakeLists.txt``.