CMAKE_SYSROOT.rst 557 B

123456789101112131415
  1. CMAKE_SYSROOT
  2. -------------
  3. Path to pass to the compiler in the ``--sysroot`` flag.
  4. The ``CMAKE_SYSROOT`` content is passed to the compiler in the ``--sysroot``
  5. flag, if supported. The path is also stripped from the RPATH/RUNPATH if
  6. necessary on installation. The ``CMAKE_SYSROOT`` is also used to prefix
  7. paths searched by the ``find_*`` commands.
  8. This variable may only be set in a toolchain file specified by
  9. the :variable:`CMAKE_TOOLCHAIN_FILE` variable.
  10. See also the :variable:`CMAKE_SYSROOT_COMPILE` and
  11. :variable:`CMAKE_SYSROOT_LINK` variables.