MantisBT - CMake
View Issue Details
0012371CMakeCMakepublic2011-07-29 04:422016-06-10 14:31
Michael Broutin 
Kitware Robot 
normalmajoralways
closedmoved 
Code::Blocks with MingWWindowsWindows 7
CMake 2.8.4 
 
0012371: Resource compilation gets wrong parameters on CB+MingW
Hi,
First, please see this thread on the Ogre Forum : http://www.ogre3d.org/forums/viewtopic.php?f=2&t=63559 [^]

It appears that from CMake 2.8.4 (tested : not fixed in CMake 2.8.5), there's a problem with resource compiling with mingw : windres.exe is called with what should be a compiler-only option (something like -msse), so compilation fails...

Right now, the only recommendation is : don't use CMake version above 2.8.3 ...

Is there a better workaround?
Or can it be fixed within CMake itself?
Get the Ogre source.
Try to compile it with Code::Blocks/MingW (Visual Studio doesn't have this problem)
Attached : CMakeLists.txt from OgreMain
No tags attached.
related to 0012444closed Bill Hoffman Starting with CMake 2.8.4 it passes invalid msse flag when compiling with MinGW 
related to 0012998closed Kitware Robot rc-File support for MinGW: <FLAGS> incompatibilities between GCC and windres 
txt CMakeLists.txt (24,972) 2011-07-29 04:42
https://public.kitware.com/Bug/file/3989/CMakeLists.txt
Issue History
2011-07-29 04:42Michael BroutinNew Issue
2011-07-29 04:42Michael BroutinFile Added: CMakeLists.txt
2012-01-10 10:42Sam MorrisNote Added: 0028237
2012-02-27 08:57Brad KingRelationship addedrelated to 0012444
2012-02-27 08:58Brad KingRelationship addedrelated to 0012998
2012-08-11 21:09David ColeStatusnew => backlog
2012-08-11 21:09David ColeNote Added: 0030368
2016-06-10 14:28Kitware RobotNote Added: 0041874
2016-06-10 14:28Kitware RobotStatusbacklog => 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
(0028237)
Sam Morris   
2012-01-10 10:42   
According to the CMake developers, Ogre is doing the wrong thing here. See http://www.cmake.org/Bug/view.php?id=12871 [^] for information and http://www.ogre3d.org/mantis/view.php?id=492 [^] for the fix.
(0030368)
David Cole   
2012-08-11 21:09   
Sending old, never assigned issues to the backlog.

(The age of the bug, plus the fact that it's never been assigned to anyone means that nobody is actively working on it...)

If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it: http://www.cmake.org/mailman/listinfo/cmake [^]

It's easy to re-activate a bug here if you can find a CMake developer who has the bandwidth to take it on, and ferry a fix through to our 'next' branch for dashboard testing.
(0041874)
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.