FetchContent_find_package_integration.rst 835 B

1234567891011121314151617
  1. FetchContent_find_package_integration
  2. -------------------------------------
  3. * Integration has been added between the :module:`FetchContent` module and the
  4. :command:`find_package` command, enabling the following new capabilities:
  5. * :command:`FetchContent_MakeAvailable` can now try to satisfy a dependency
  6. by calling :command:`find_package` first. A new
  7. :variable:`FETCHCONTENT_TRY_FIND_PACKAGE_MODE` variable controls whether
  8. this is done by default for all dependencies, is opt-in per dependency,
  9. or is disabled entirely.
  10. * :command:`find_package` can be re-routed to call
  11. :command:`FetchContent_MakeAvailable` instead. A new read-only
  12. :variable:`CMAKE_FIND_PACKAGE_REDIRECTS_DIR` variable points to a
  13. directory where config package files can be located to facilitate these
  14. re-routed calls.