Add CMAKE_SYSROOT variable to set --sysroot when cross compiling.
As CMAKE_ROOT_FIND_PATH can be a list, a new CMAKE_SYSROOT is introduced, which is never a list. The contents of this variable is passed to supporting compilers as --sysroot. It is also accounted for when processing implicit link directories reported by the compiler, and when generating RPATH information.
-
mentioned in issue #16682 (closed)
-
mentioned in merge request !2981 (merged)
-
mentioned in merge request !3159 (merged)
Please register or sign in to comment