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