<div>Nils, Craig - thanks, yes, that helps.</div><div><br></div><div class="protonmail_signature_block"><div class="protonmail_signature_block-user protonmail_signature_block-empty"><br></div><div class="protonmail_signature_block-proton">Sent with <a href="https://protonmail.com" target="_blank">ProtonMail</a> Secure Email.<br></div></div><div><br></div><div>‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br></div><div> On July 3, 2018 4:15 PM, Craig Scott <craig.scott@crascit.com> wrote:<br></div><div> <br></div><blockquote class="protonmail_quote" type="cite"><div dir="ltr">Perhaps you are looking for <a href="https://cmake.org/cmake/help/latest/variable/CMAKE_FIND_ROOT_PATH.html">CMAKE_FIND_ROOT_PATH</a>, <a href="https://cmake.org/cmake/help/latest/variable/CMAKE_FIND_ROOT_PATH_MODE_LIBRARY.html">CMAKE_FIND_ROOT_PATH_MODE_LIBRARY</a> and friends?<br></div><div class="gmail_extra"><div><br></div><div class="gmail_quote"><div>On Tue, Jul 3, 2018 at 10:58 PM, dbegun via CMake <span dir="ltr"><<a target="_blank" href="mailto:cmake@cmake.org">cmake@cmake.org</a>></span> wrote:<br></div><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" class="gmail_quote"><div>I am cross-compiling some code for ARM on an x86 host with cmake 3.5.1. The code has multiple dependencies, and I placed relevant cross-compiled libraries in /home/dev/arm_build. I was hoping that specifying CMAKE_SYSROOT=/<wbr>home/dev/arm_build in my CMAKE_TOOLCHAIN_FILE would prefix it to the search path of the find_* commands, so I won't have to modify existing Find*.cmake files. However, when I do that, cmake is unable to locate the compiler's libc files (my compiler also resides in /home/dev/arm_build) and is unable to compile a test program, not finding crt1.o, crti.o etc. Without specifying CMAKE_SYSROOT things work, it's just that I have to edit the Find*.cmake files. I can live with that, but any suggestions?<br></div><div><br></div><div class="m_2430530129198755134protonmail_signature_block"><div class="m_2430530129198755134protonmail_signature_block-user m_2430530129198755134protonmail_signature_block-empty"><br></div><div class="m_2430530129198755134protonmail_signature_block-proton">Sent with <a target="_blank" href="https://protonmail.com">ProtonMail</a> Secure Email.<br></div></div><div><br></div><div><br></div><div>-- <br></div><div> <br></div><div> Powered by <a target="_blank" rel="noreferrer" href="http://www.kitware.com">www.kitware.com</a><br></div><div> <br></div><div> Please keep messages on-topic and check the CMake FAQ at: <a target="_blank" rel="noreferrer" href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/<wbr>CMake_FAQ</a><br></div><div> <br></div><div> Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br></div><div> <br></div><div> CMake Support: <a target="_blank" rel="noreferrer" href="http://cmake.org/cmake/help/support.html">http://cmake.org/cmake/help/<wbr>support.html</a><br></div><div> CMake Consulting: <a target="_blank" rel="noreferrer" href="http://cmake.org/cmake/help/consulting.html">http://cmake.org/cmake/help/<wbr>consulting.html</a><br></div><div> CMake Training Courses: <a target="_blank" rel="noreferrer" href="http://cmake.org/cmake/help/training.html">http://cmake.org/cmake/help/<wbr>training.html</a><br></div><div> <br></div><div> Visit other Kitware open-source projects at <a target="_blank" rel="noreferrer" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/<wbr>opensource/opensource.html</a><br></div><div> <br></div><div> Follow this link to subscribe/unsubscribe:<br></div><div> <a target="_blank" rel="noreferrer" href="https://cmake.org/mailman/listinfo/cmake">https://cmake.org/mailman/<wbr>listinfo/cmake</a><br></div><div> <br></div></blockquote></div><div><br></div><div><br></div><div><br></div><div>-- <br></div><div data-smartmail="gmail_signature" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Craig Scott<br></div><div>Melbourne, Australia<br></div><div><a target="_blank" href="https://crascit.com">https://crascit.com</a><br></div></div></div></div></div></div></div></div></blockquote><div><br></div>