mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 20:00:38 -06:00
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>
10 lines
343 B
ReStructuredText
10 lines
343 B
ReStructuredText
CMAKE_SYSROOT_COMPILE
|
|
---------------------
|
|
|
|
Path to pass to the compiler in the ``--sysroot`` flag when compiling source
|
|
files. This is the same as :variable:`CMAKE_SYSROOT` but is used only for
|
|
compiling sources and not linking.
|
|
|
|
This variable may only be set in a toolchain file specified by
|
|
the :variable:`CMAKE_TOOLCHAIN_FILE` variable.
|