Hello Dirk,

Dirk Reiners wrote:
> Carsten Neumann wrote:
>> ah, switching VS to the right configuration is what I missed when 
>> writing that mail about different configs not working on windows (I 
>> guess the cmake documentation is just out of date on that).
>> The trick that seems to make it work is setting CMAKE_BUILD_TYPE and the 
>> VS configuration to the same thing. With that setup I was able to 
>> compile  a DebugRT OSGBase (rest is still churning).
>> Without setting cmake to DebugRT the stuff in UpdateCompiler switches 
>> from the debug to release runtime libs.
> 
> hm, does that mean the VS project needs to be regenerated for different 
> compile modes? That doesn't sound very useful... Is that a bug or is it 
> supposed to work that way?

I'm not quite sure, to be honest. It depends on whether we have to 
manually add msvcprtd.lib msvcrtd.lib on the link line or if passing 
/MDd implies that.
In the latter case we don't need the stuff that UpdateCompiler.cmake 
does. On the other hand I would assume it is there for a reason ;-)
Maybe Gerrit knows ?

        Cheers,
                Carsten

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to