CMake/Help/variable/CMAKE_SYSROOT_LINK.rst
Brad King 53e89b6ab0 Add options for separate compile and link sysroots
Add `CMAKE_SYSROOT_COMPILE` and `CMAKE_SYSROOT_LINK` variables to as
operation-specific alternatives to `CMAKE_SYSROOT`.  This will be useful
for Android NDKs that compile and link with different sysroot values
(e.g. `r14` with unified headers).

Co-Author: Florent Castelli <florent.castelli@gmail.com>
2017-05-09 14:21:54 -04:00

10 lines
322 B
ReStructuredText

CMAKE_SYSROOT_LINK
------------------
Path to pass to the compiler in the ``--sysroot`` flag when linking. This is
the same as :variable:`CMAKE_SYSROOT` but is used only for linking and not
compiling sources.
This variable may only be set in a toolchain file specified by
the :variable:`CMAKE_TOOLCHAIN_FILE` variable.