> The docs say that the signature is
> CMAKE_FORCE_C_COMPILER(<compiler> <compiler-id>)
> so maybe something bad happens when you give it that extra
> argument "4"? Try without "4"?
Actually, it changes nothing.
*but* if I remove the specific version number for the compiler, i.e. I define
FIND_PROGRAM (xcc ${XTOOLCHAIN}-gcc)
instead of
FIND_PROGRAM (xcc ${XTOOLCHAIN}-gcc-${XCC_VER})
then the proper ranlib tool is called.
In other words (I double-check with MESSAGE (STATUS "PREFIX:
${_CMAKE_TOOLCHAIN_PREFIX}")), if no GCC version is specified, the
toolchain prefix is detected, however if a specific compiler version
is specified, the toolchain prefix is empty.
There's may be a limitation with the syntax matching rule here. Should
I log a bug ?
Cheers,
Manu
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake