<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">The only way I found to control which compiler is used while run ctest is over the environment:<div><br></div><div>export MAKECOMMAND=/usr/local/bin/ninja</div><div>export PATH=/Developer/usr/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin</div><div><div>export CC="/opt/local/libexec/ccache/gcc-4.0"</div><div>export CXX="/opt/local/libexec/ccache/g++-4.0"</div><div>/usr/local/bin/cmake -G "Ninja" -DCMAKE_TEST_GENERATOR:STRING="Ninja" \</div><div>    -DCMAKE_MAKE_PROGRAM:FILEPATH="${MAKECOMMAND}" \</div><div>    -DCMAKE_TEST_MAKEPROGRAM:FILEPATH="${MAKECOMMAND}" -DCMAKE_ENABLE_NINJA:BOOL="ON" \</div><div>    -DCMAKE_C_COMPILER=${CC} -DCMAKE_CXX_COMPILER=${CXX} \</div><div>    -DCMAKE_LINKER:FILEPATH=/usr/bin/ld \</div><div>    -DCMAKE_AR:FILEPATH=/usr/bin/ar \</div><div>    -DCMAKE_RANLIB:FILEPATH=/usr/bin/ranlib \</div><div>    -DMAKECOMMAND:STRING="${MAKECOMMAND}" \</div><div>    ../cmake</div><div><br></div><div>And still there is the question how to prevent the run of Architecture and ObjC++ tests when I use the mac port gcc-4.7?</div><div><br></div><div><div>The following tests FAILED:</div><div><span class="Apple-tab-span" style="white-space:pre"> </span> 58 - Architecture (Failed)</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>130 - ObjC++ (Failed)</div></div><div><br></div><div><div>On 08.07.2012, at 12:04, Claus Klein wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 07.07.2012, at 21:34, Nicolas Desprès wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">I advice you to install the Apple command line tools for xcode and<br>stop to use gcc.<br></blockquote></div><br><div>I have removed the path to /opt/local/bin and tested xcode without ninja:</div><div><a href="http://open.cdash.org/viewTest.php?onlyfailed&buildid=2423850">http://open.cdash.org/viewTest.php?onlyfailed&buildid=2423850</a></div><div><br></div><div>It is not clear to me what is intended with cmake selftest?</div><div><br></div><div> * If Xcode generator is selected, sure the Bundle and other Xcode test should run</div><div><br></div><div> * If I configure a different tool chain, i.e. mac port gcc-4.7 with all tool under /opt/local/bin,</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>it is an ERROR to run Bundle, <a href="http://open.cdash.org/testSummary.php?project=1&name=Architecture&date=2012-07-08" style="font-size: 14px; color: rgb(0, 38, 77); font-weight: normal; text-decoration: underline; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(236, 236, 236); ">Architecture</a>, and ObjC++ tests!</div><div><br></div><div>Perhaps I must set a different CMAKE_SYSTEM_NAME, but which one?</div><div><br></div><div><div>#FIXME   -DCMAKE_SYSTEM_NAME=Darwin-GNU \</div><div> -DCMAKE_C_COMPILER=/opt/local/libexec/ccache/gcc \</div><div> -DCMAKE_CXX_COMPILER=/opt/local/libexec/ccache/g++ \</div><div><br></div></div><div>IMO it is a use case like cross compiling!</div><div>I need a chance to control what happens.</div><div><br></div><div>Claus</div><div><br></div></div>--<br><br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers">http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers</a></blockquote></div><br></div></body></html>