I think that the proposed patch try to mimic the devenv behaviour under 
nmake.
Being the one who proposed the ../bin and ../..bin hack I knew I was 
relying on a peculiarity of the generator that differentiate target 
placement
for config, I never used nmake so did not know that generator did not 
use config folders.
I think that if one use devenv in batch should not be affected by this 
patch.

Serge Lages wrote:

> Hi,
>
> I really don't understand what's the goal of this patch. Personnaly I 
> build OSG under Windows with command line batch (not nmake, just batch 
> scripts), that means that I will not have the dll versionned or that 
> the current paths will change ?
>
> Can you explain a little more what's the behaviour of this patch ?
>
> On Feb 12, 2008 11:40 AM, René Molenaar <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     Using commandline build system nmake on windows does not work.
>      
>     This is caused by the OSG_MSVC_VERSIONED_DLL hack.
>     there are hard-coded paths to place the dll's in the bin /dir that
>     normally would go
>     in the lib/config (release/debug) dirs. Nmake has different
>     locations for the files (no config dir).
>      
>      fix: change the macro's in OsgMacroUtils.cmake for the IF(NOT
>     MSVC_IDE) situation.
>      Libs go in lib/, and DLLs and executables go in bin/
>      To accopmplish this for MSVC_IDE the targets get a "../../bin"
>     prefix,
>      for nmake this should be "../bin" (because there are no config
>     folders).
>
>      This fix mimics the behaviour of the MSCV_IDE (visual studio)
>     build system when building with nmake.
>      
>      Note:
>      A change in the main CMakeLists.txt creates the needed plugin
>     directory in the binary dir.
>      
>      see included files for the changes:
>      r7885fix-v2/CMakeModules/OsgMacroUtils.cmake  
>      r7885fix-v2/osgWrappers/CMakeLists.txt
>      r7885fix-v2/CMakeLists.txt
>      
>      
>     The behaviour of visual studio projects (and other build systems)
>     remain unchanged.  
>     Tested building and installing with nmake and visual studio 8
>     debug and release.
>      
>
>      
>     Submitted by: René Molenaar
>     to: [email protected]
>     <mailto:[email protected]>
>     email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>      
>     _______________________________________________
>     osg-submissions mailing list
>     [email protected]
>     <mailto:[email protected]>
>     
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
>
>
> -- 
> Serge Lages
> http://www.tharsis-software.com
>
>------------------------------------------------------------------------
>
>_______________________________________________
>osg-submissions mailing list
>[email protected]
>http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>  
>

_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to