[CMake] reusable cmakecache.txt
Alexander Neundorf
a.neundorf-work at gmx.net
Tue Feb 27 17:04:27 EST 2007
Von: Alexander Ivash <alexander.ivash at psa-software.com>
> Hello, Bill.
>
> You wrote 26 ôåâðàëÿ 2007 ã., 19:26:44:
>
> > Alexander Ivash wrote:
> >> Hello, cmake.
> >>
> >> I have 2 compilers: gnu and diab. Cmake can't find them so I have to
> >> run cmakesetup and enter path for them every time I need to prepare
> >> new project for compilation. Is it possible to keep gnu related path
> >> in gnu.cmake and diab related in diab.cmake and later do something like
> >> this:
> >>
> >> cmake -G "Unix Makefiles" -gnu.cmake ?
> >>
> >> I thought -C option exists for this purposes, but it seems that -C
> >> just set path to CMakeLists.txt. It will be very cool if the written
> >> above is possible.
> >>
> >>
> > CXX and CC environment variables can be set prior to running cmake if it
> > can not find your compiler.
>
> > -Bill
>
> Due to -D option? But it seems a bit unconvenient to type every time
>
> cmake -D "CMAKE_AR:FILEPATH=D:/WindRiver/diab/5.2.3.0/WIN32/bin/dar.exe"
> -D
> "CMAKE_CXX_COMPILER:FILEPATH=D:/WindRiver/diab/5.2.3.0/WIN32/bin/dcc.exe"
> -D "CMAKE_C_COMPILER:FILEPATH=D:/WindRiver/diab/5.2.3.0/WIN32/bin/dcc.exe"
> -D
> "CMAKE_MAKE_PROGRAM:FILEPATH=D:/WindRiver/vxworks-6.1/host/x86-win32/bin/make.exe"
> -G "Unix Makefiles"
>
> each time when I need to generate CmakeCache for project. If there
> would be a feature to use "template cmake cache" as a prototype
> for creating working cmake cache... Or I something misunderstand ?
have a look at UseEcos.cmake. This sets some variables (compiler etc.) as required for cross compiling eCos applications. I guess that's not too different to crosscompiling for VxWorks (... if that's what you are doing).
Bye
Alex
--
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
Jetzt GMX ProMail testen: www.gmx.net/de/go/mailfooter/promail-out
More information about the CMake
mailing list