[CMake] CHECK_TYPE_SIZE("size_t" SIZEOF_SIZE_T) failed while crosscompile

Bill Hoffman bill.hoffman at kitware.com
Wed Jan 10 14:22:48 EST 2007


Claus Klein wrote:
>
> 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
>
>   
Right now there is no way to do this, other than pre-set the variable.  
However, there are plans
at some point to add better support for cross-compiling.   When that 
happens, in cross-compile
mode all try_run calls will cause errors.  This has not yet been 
implemented.

-Bill



More information about the CMake mailing list