MantisBT - CMake
View Issue Details
0013745CMakeCMakepublic2012-11-27 04:252016-06-10 14:31
Mahendra Ladhe 
Kitware Robot 
normalmajoralways
closedmoved 
LinuxLinux RedHat 5.65.6
CMake 2.8.4 
 
0013745: CHECK_C_COMPILER_FLAG doesn't work with -march=xlr option with a MIPS gcc cross compiler
I 've a CMakeLists.txt file as below.

CHECK_C_COMPILER_FLAG (-march=xlr FLAG_xlr)
CHECK_C_COMPILER_FLAG (-march=xlp FLAG_xlp)

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 (just to show that
-march option is acted upon by the compiler)

When I invoke cmake on above CMakeLists.txt file, 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.
As described above.
I cannot provide the gcc cross compiler used since it's not publicly available.
No tags attached.
Issue History
2012-11-27 04:25Mahendra LadheNew Issue
2016-06-10 14:28Kitware RobotNote Added: 0042158
2016-06-10 14:28Kitware RobotStatusnew => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042158)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.