[CMake] cmake exception

Alan W. Irwin irwin at beluga.phys.uvic.ca
Thu Mar 15 14:19:37 EST 2007


On 2007-03-15 17:45+0200 Alexander Ivash wrote:

> Hello, cmake.
>
> The following sample from cmakelists.txt causes termination of cmake
> on win32. I run "cmake -D "CROSSCOMPILE=TRUE" -D "TOOL=diab" -D
> "CPU=SimNT" -D "UGL_INCLUDE=D:/WindRiver/components/windml-4.0/h" -D "VXWORKS_INCLUDE=D:/WindRiver/vxworks-6.1/target/h" -G "Unix Makefiles" ../../../"
>
> if(DEFINED CROSSCOMPILE)
>        set(ENV{PATH} "$ENV{PATH};${WIND_RIVER_DIAB_DIR}")
>        set(ENV{PATH} "$ENV{PATH};${WIND_RIVER_DIR}/vxworks-6.1/host/x86-win32/bin")
>
>        set(CMAKE_MAKE_PROGRAM "make")
>        set(CMAKE_CXX_COMPILER "dcc")
>        #set(CMAKE_COMPILER_IS_GNUCXX 1)
>        set(CMAKE_C_COMPILER "dcc")
>        set(CMAKE_AR "ar")
> elseif(DEFINED CROSSCOMPILE)
>
> endif(DEFINED CROSSCOMPILE)
>
> What I'm doing wrong?

>From my Linux/Unix perspective, it looks like you may have a syntax error in
the way you are specifying your -D options with spaces.  The following
syntax for the -D options

cmake -DCROSSCOMPILE=True ...

should work (at least on Linux/Unix).

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the
Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________


More information about the CMake mailing list