<div dir="ltr">Hi,<div><br></div><div>the <a href="https://cmake.org/cmake/help/v3.6/manual/cmake-toolchains.7.html#cross-compiling">documentation regarding cross-compiling</a> says that CMAKE_FIND_ROOT_PATH_MODE_* are usually set to ONLY to prevent searching for libraries on the host. But this also prevents finding libraries via absolute path or relative path to the project.</div><div><br></div><div>Is there a way to prevent searching host sysroot (/usr/lib, /usr/include, etc), while still allowing find_library via absolute paths or paths relative to the project?</div><div><br></div><div>Thanks.</div></div>