2 Jan 2007 22:04
Re: Project using cross compiler
Hi Reinhard, Von: Reinhard Thies <Reinhard.Thies@...> > Hello, > > I am quiet new to cmake. It looks very nice, at least what I have seen > so far. > I just want to convert some of my projects to cmake. But I have a > question now : > > My project is either running under a ARM or PPC plattform or directly on > my Linux Host. How do I tell cmake to use the cross tools ? You could set the variables like CMAKE_CXX_COMPILER, CMAKE_COMPILER_IS_GNUCXX, CMAKE_C_COMPILER, CMAKE_AR, CMAKE_RANLIB etc. manually. You also might have to adjust CMAKE_CXX_LINK_EXECUTABLE, CMAKE_C_LINK_EXECUTABLE and friends. You can have a look at share/CMake/Modules/UseEcos.cmake for this. But this is for cross compiling eCos applications, not Linux applications. Maybe others have better suggestions ? Bye Alex -- -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
RSS Feed