I have now created a toolchain file which looks like this (c:\temp\cmake\TC_diab.cmake):<br><br>set(CMAKE_MODULE_PATH "c:/temp/cmake/Modules" ${CMAKE_MODULE_PATH})<br>set(CMAKE_SYSTEM_NAME Generic)<br>set(CMAKE_C_COMPILER "C:/DIAB/<a href="http://5.6.0.0/WIN32/bin/dcc.exe">5.6.0.0/WIN32/bin/dcc.exe</a>")<br>
set(CMAKE_SYSTEM_PROCESSOR "MPC5566")<br><br>The compiler demands a target processor so to be able to perform the "compiler test" during the compiler identification I had to add a platform file (c:\temp\cmake\Modules\Platform\generic-dcc-MPC5566.cmake):<br>
<br>set(CMAKE_C_FLAGS_INIT "-tPPCE200Z6NEG")<br><br>Now, when I run Cmake on this very simple CmakeLists.txt<br><br>cmake_minimum_required(VERSION 2.6.0)<br>project(Foo C)<br><br>I get the following error:<br><br>
-- The C compiler identification is unknown<br>-- Check for working C compiler: C:/DIAB/<a href="http://5.6.0.0/WIN32/bin/dcc.exe">5.6.0.0/WIN32/bin/dcc.exe</a><br>-- Check for working C compiler: C:/DIAB/<a href="http://5.6.0.0/WIN32/bin/dcc.exe">5.6.0.0/WIN32/bin/dcc.exe</a> -- works<br>
-- Detecting C compiler ABI info<br>-- Detecting C compiler ABI info - done<br>-- Configuring done<br>You have changed variables that require your cache to be deleted.<br>Configure will be re-run and you may have to reset some variables.<br>
The following variables have changed:<br>CMAKE_C_COMPILER= C:/Scania/ProgramsForBuild/MinGW/5.1.4/bin/gcc.exe<br><br>-- The C compiler identification is GNU<br>-- Check for working C compiler: C:/MinGW/5.1.4/bin/gcc.exe<br>
-- Check for working C compiler: C:/MinGW/5.1.4/bin/gcc.exe -- works<br>-- Detecting C compiler ABI info<br>-- Detecting C compiler ABI info - done<br>-- Configuring done<br>-- Generating done<br>-- Build files have been written to: Z:/ssscde-vsd-ne-sw/eec3/02/output/make<br>
<br>What have I done wrong? What variable have I changed?<br><br>Regards, <br>Daniel Carlson<br><br><div class="gmail_quote">2009/3/25 Alexander Neundorf <span dir="ltr"><<a href="mailto:a.neundorf-work@gmx.net">a.neundorf-work@gmx.net</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Wednesday 25 March 2009, Carlson Daniel wrote:<br>
</div><div class="im">> No i do not have a toolchain file, but you are right, perhaps I need one...<br>
><br>
> I am compiling with the DIAB compiler from Windriver and my target system<br>
> is a power PC from Freescale, MPC5566. I have used the<br>
> CMakeForceCompiler-module to change compiler from gcc to DIAB...<br>
<br>
</div>Yes, I think you should.<br>
So, this is for VxWorks ?<br>
Is the compiler recognized ?<br>
If not, we can add something, this is usually easy to do.<br>
<div><div></div><div class="h5"><br>
Alex<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">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" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br>