[CMake] CHECK_TYPE_SIZE("size_t" SIZEOF_SIZE_T) failed while
crosscompile
Claus Klein
claus.klein at arcormail.de
Wed Jan 10 13:51:25 EST 2007
On Wednesday 10 January 2007 17:00, Bill Hoffman wrote:
> Claus Klein wrote:
> > Hallo,
> >
> > the following Modules use TRY_RUN, which must fail while crosscompile:
> >
> > CheckTypeSize.cmake: TRY_RUN(${VARIABLE} HAVE_${VARIABLE}
> > FindThreads.cmake: TRY_RUN(THREADS_PTHREAD_ARG THREADS_HAVE_PTHREAD_ARG
> > TestBigEndian.cmake: TRY_RUN(${VARIABLE} HAVE_${VARIABLE}
> >
> >
> > ...
> >
> You should be able to set the variable that is used in the TRY_RUN to
> keep it from trying to run again. After all it does not do the try_run
> every time cmake is run, only the first time. Or are you asking some
> other question?
>
> -Bill
>
Hallo Bill,
thanks for quick anser.
If it works with:
cmake -DSIZEOF_SIZE_T=4 ..
it is ok for me.
But my real intention is:
It ist possible to prevent test which use TRY_RUN()?
That was the most often problem with configure, why continue this with cmake?
While crosscompiling, sure!
-Claus
More information about the CMake
mailing list