Skip to content

Compilers: Ignore -print-sysroot prefix when it is '/'

Brad King requested to merge brad.king/cmake:sysroot-prefix into master

Since !4585 (merged) we prepend the compiler's sysroot to CMAKE_SYSTEM_PREFIX_PATH. This does not make sense when the prefix is just /, such as on Ubuntu 16.04's system compiler.

Fixes: #21019 (closed)
Backport: release

Merge request reports