[CMake] CHECK_C_COMPILER_FLAG doesn't work with -march=xlr option with a MIPS gcc cross compiler
Mahendra Ladhe
lml108 at yahoo.com
Thu Nov 22 23:01:29 EST 2012
Hi,
I've a CMakeLists.txt file as below.
CHECK_C_COMPILER_FLAG (-march=xlr FLAG_xlr)
CHECK_C_COMPILER_FLAG (-march=xlp FLAG_xlp)
cmake version is 2.8.4 on Linux RedHat 5.6
I'm using a gcc MIPS cross compiler. Using this cross compiler I'm able to compile
a simple C program using both -march=xlr and -march=xlp compiler options.
The size of a.out differs with these two options.
But then I invoke cmake, I get the following.
-- Performing Test FLAG_xlr
-- Performing Test FLAG_xlr - Failed
-- Performing Test FLAG_xlp
-- Performing Test FLAG_xlp - Success
It says Test FLAG_xlr failed, but it shouldn't fail since the cross compiler does support
-march=xlr option.
Could someone please tell me if I'm missing anything here ?
Thank you,
Mahendra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20121123/4d97a647/attachment.htm>
More information about the CMake
mailing list