<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div>Hi,<br> I've a CMakeLists.txt file as below.<br><br>CHECK_C_COMPILER_FLAG (-march=xlr FLAG_xlr)<br>CHECK_C_COMPILER_FLAG (-march=xlp FLAG_xlp)<br><br>cmake version is 2.8.4 on Linux RedHat 5.6<br><br>I'm using a gcc MIPS cross compiler. Using this cross compiler I'm able to compile<br>a simple C program using both -march=xlr and -march=xlp compiler options. <br>The size of a.out differs with these two options.<br><br>But then I invoke cmake, I get the following.<br><br>-- Performing Test FLAG_xlr<br>-- Performing Test FLAG_xlr - Failed<br>-- Performing Test FLAG_xlp<br>-- Performing Test FLAG_xlp - Success<br><br>It says Test FLAG_xlr failed, but it shouldn't fail since the cross compiler does support<br>-march=xlr option.<br><br>Could someone please tell me if I'm missing anything here ?<br><br>Thank
you,<br>Mahendra</div></div></body></html>