[CMake] Location of ar and ld during cross-compilation

Denis Scherbakov denis_scherbakov at yahoo.com
Mon Apr 20 10:41:13 EDT 2009


I have a set of cross-compilers and toolchain files for them. Our binutils are separated from gcc. Say:

/cross/path/binutils/bin
/cross/path/gcc/bin

As I understood from CMakeFindBinUtils.cmake script, it looks for binutils 
only in /cross/path/gcc/bin, and ignores CMAKE_FIND_ROOT_PATH completely.

Q1: Is it a bug or intended feature?
Q2: Is there a way to specify location of AR and others in a toolchain file?

Thank you for your time.

Denis


      


More information about the CMake mailing list