hxl0809 / caelum

Automatically exported from code.google.com/p/caelum
0 stars 0 forks source link

CMake configuration fails to generate correct lib name for Ogre debug build. #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run CMake (or cmake-gui) in the Caelum root directory.
2. Configure
3. Generate

What is the expected output? What do you see instead?

The Caelum project Debug build should link against OgreMain_d.lib, not 
OgreMain.lib.

What version of the product are you using? On what operating system?

0.6 on Win32

Please provide any additional information below.

The name of the library to link against might possibly be conditional based on 
whether the Ogre SDK is detected or not.  If Ogre is found but does not appear 
to include the full SDK hierarchy, linking should perhaps look for the release 
build.

There is some argument to be made that Caelum should link against a release 
build of Ogre regardless of the Caelum build, for speed purposes.  In my 
experience this does not work.  Your application will experience random 
crashes.  Possibly there is a way to successfully build a valid debug build 
against a release build library (obviously there has to be a way, or linking to 
system libraries wouldn't work), but I have yet to see a successful 
configuration involving Ogre.

Original issue reported on code.google.com by drag...@gmail.com on 11 May 2011 at 10:34