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=/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?

Sent with [ProtonMail](https://protonmail.com) Secure Email.
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake

Reply via email to