[CMake] Cross-compiling a static library (CMake 2.8.3)
Emmanuel Blot
eblot.ml at gmail.com
Mon Jan 10 11:00:42 EST 2011
Hello,
Using the ADD_LIBRARY command for a static library (.a), how to tell
CMake to use the ranlib tool for the target, not the default one for
the host?
I'm getting the following warning message:
cd watchdog && /usr/local/Cellar/cmake/2.8.3/bin/cmake -E
cmake_link_script CMakeFiles/nd_watchdog.dir/link.txt --verbose=1
/usr/bin/ar cr libnd_watchdog.a CMakeFiles/nd_watchdog.dir/src/nd_watchdog.c.o
/usr/bin/ranlib libnd_watchdog.a
/usr/bin/ranlib: warning for library: libnd_watchdog.a the table of
contents is empty (no object file members in the library define global
symbols)
I'd like to use our dedicated arm-eabi-ranlib tool instead.
Cheers,
Manu
More information about the CMake
mailing list