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
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to