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

David Cole david.cole at kitware.com
Wed Feb 23 12:03:07 EST 2011


On Wed, Feb 23, 2011 at 11:28 AM, Alexander Neundorf
<a.neundorf-work at gmx.net> wrote:
> 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
>

Sorry about that. I am not a big cross-compiler yet, and did not
understand that the context of this set call was in a platform file.

Always listen to Alex over me when cross-compling is involved... :-)


More information about the CMake mailing list