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 ? -- Best regards, Alexander mailto:[EMAIL PROTECTED] _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake