CMake selecting boost *.dll for debug and *.a for release

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
TheSHEEEP
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 972
Joined: Mon Jun 02, 2008 6:52 pm
Location: Berlin
x 65

CMake selecting boost *.dll for debug and *.a for release

Post by TheSHEEEP »

Hey,

I found a rather strange behaviour using MinGW, boost 1.50 and CMake, dynamic build:
CMake selects *.dll files as Boost_*_LIBRARY_DEBUG and *.a files as Boost_*_LIBRARY.

While strange, this wouldn't directly be a problem if the install make would copy the dll files to the Ogre SDK /bin/debug folder. But it doesn't.

I also doubt that this is a MinGW problem, as MinGW doesn't influence the boost file selection, or does it?
It seems as if it uses dynamic boost libraries for Debug and static boost libraries for Release.

So, does anyone else have this weird behaviour?
My site! - Have a look :)
Also on Twitter - extra fluffy
Transporter
Minaton
Posts: 933
Joined: Mon Mar 05, 2012 11:37 am
Location: Germany
x 110

Re: CMake selecting boost *.dll for debug and *.a for releas

Post by Transporter »

TheSHEEEP wrote:While strange, this wouldn't directly be a problem if the install make would copy the dll files to the Ogre SDK /bin/debug folder. But it doesn't.
The CMake script set the highest priority on static boost. It's really hard to build with dynamic boost and if CMake use dynamic boost there will be no copy of boost DLLs.