On 08/07/2013 11:56 AM, Stephen Kelly wrote:
When cross-compiling with g++, the _CMAKE_TOOLCHAIN_PREFIX is set by
examining the name of the compiler in CMakeDetermineCXXCompiler.cmake.
Yes, that's a hack specific to GNU conventions. As you pointed out
later in your message there is no Clang
Hi there,
I can use a trivial toolchain file to compile for QNX with qcc:
SET(CMAKE_SYSTEM_NAME QNX)
SET(arch gcc_ntoarmv7le)
SET(CMAKE_C_COMPILER qcc -V${arch})
SET(CMAKE_CXX_COMPILER QCC -V${arch})
SET(CMAKE_FIND_ROOT_PATH $ENV{QNX_TARGET}/armle-v7 $ENV{QNX_TARGET})