Ninja.rst 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. Ninja
  2. -----
  3. Generates build.ninja files.
  4. A build.ninja file is generated into the build tree. Recent versions
  5. of the ninja program can build the project through the ``all`` target.
  6. An ``install`` target is also provided.
  7. For each subdirectory ``sub/dir`` of the project, additional targets
  8. are generated:
  9. ``sub/dir/all``
  10. Depends on all targets required by the subdirectory.
  11. ``sub/dir/install``
  12. Runs the install step in the subdirectory, if any.
  13. ``sub/dir/test``
  14. Runs the test step in the subdirectory, if any.
  15. ``sub/dir/package``
  16. Runs the package step in the subdirectory, if any.
  17. Fortran Support
  18. ^^^^^^^^^^^^^^^
  19. The ``Ninja`` generator conditionally supports Fortran when the ``ninja``
  20. tool has the required features. As of this version of CMake the needed
  21. features have not been integrated into upstream Ninja. Kitware maintains
  22. a branch of Ninja with the required features on `github.com/Kitware/ninja`_.
  23. .. _`github.com/Kitware/ninja`: https://github.com/Kitware/ninja/tree/features-for-fortran#readme