<div><span class="590053923-24032009"><font size="2" face="Arial">I'm having a problem
creating a toolchain file for use with cmake 2.6.3. I'd like to generate a
UnixMakefile compatible with the QNX Momentics cross platform development tools.
The problem is</font></span><span class="590053923-24032009"><font size="2" face="Arial"> cmake doesn't seem to find the archiver which is named ntox86-ar.exe (as QNX runs on multiple platforms there are many different versions of the archiver for each target). No
placement of SET(CMAKE_AR "ntox86-ar.exe") in the toolchain file seems to help.
There is two solutions that I have found so far, neither of which I'm
particularly happy with. They are -</font></span></div>
<div><span class="590053923-24032009"></span> </div>
<div><span class="590053923-24032009"><font size="2" face="Arial">1) making a copy of
ntox86-ar.exe in the momentics install and renaming it to ar.exe (which is
obviously what cmake is looking for, but totally wrong in the context of using a system which is designed for many targets)</font></span></div>
<div><span class="590053923-24032009"><font size="2" face="Arial">2) modifying the
QNX.cmake file in the platforms directory and adding the above SET command (again I would have to modify this every time I wanted to build for a new target)<br></font></span></div>
<div><span class="590053923-24032009"></span> </div>
<div><span class="590053923-24032009"><font size="2" face="Arial">I would like to be able to specify this in the toolchain file as it is my understanding that this is what this file is intended for. Am I doing something
wrong here, or is this the expected behaviour of cmake?</font></span></div>
<div><span class="590053923-24032009"></span> </div>
<div><span class="590053923-24032009"><font size="2" face="Arial">Thanks,
Ross</font></span></div>