[CMake] Cross-compiling: Cmake compiler and ABI check don´t work / TRY_COMPILE and EXECUTABLE_SUFFIX problem

Alexander Neundorf a.neundorf-work at gmx.net
Wed Feb 23 11:28:30 EST 2011


On Wednesday 23 February 2011, Schmid Alexander wrote:
> > This suffix should be set by the platform file.
> > Modules/CMakeSystemSpecificInformation.cmake includes
> > CMakeGenericSystem.cmake, which sets it to "". That's what you see.
> >
> > Then it includes Platform/${CMAKE_SYSTEM_NAME}, which is
> > Platform/Generic.cmake. This file does not change the suffix, so it stays
> > empty for you.
> >
> > If you need a different suffix, you probably have to come up with a name
> > for your platform and provide a platform file for it, which sets the
> > name.
> >
> > Alex
>
> Hi Alex,
>
> thanks a lot. That was the solution to my problem.
> Although, I still wonder whether I should have set the suffixes (see David
> Cole's posting...)

The suffix is meant to be set from the platform file, but not from anywhere 
else.
So, there are no contradictions here.

Alex


More information about the CMake mailing list