[CMake] Cmake broken on ARM

Brad King brad.king at kitware.com
Wed May 14 09:12:10 EDT 2008


Pierre Habouzit wrote:
> On Tue, May 13, 2008 at 01:59:13PM +0000, Brad King wrote:
>> Pierre Habouzit wrote:
>>>   The last cmake version broke on arm because of cmsys/CPU.h that don't
>>> know about this architecture.
>> What is the error message you get?
>>
>>   "The target CPU architecture is not known."
>>
>> ?
> 
>   Yes. Prior versions built and worked fine on arm.

That was before the ELF parser was added to avoid relinking just to
change the RPATH.  The CPU.h file is used to determine the native byte
order to provide a good initial guess for the byte order of the ELF file
headers.

Anyway, I've applied your ARM patch.

I've also updated the ELF parser code to tell CPU.h to not complain when
the order is unknown at compile time since a runtime test is done anyway.

Thanks,
-Brad


More information about the CMake mailing list