Its still a compile time that effect issue the Iterator debugging is compiled by default into your libs/dll so you have to compiler all your lib/dlls with this define
As to the correct way to do this with Cmake I cannot comment Cmake is new to m, but however you set this up you will have to recompile all your libs with _HAS_ITERATOR_DEBUGGING=0 and not just your exe Best Regards Gordon __________________________________________________________ Gordon Tomlinson Email : gordon.tomlinson @ overwatch.com YIM/AIM: Gordon3dBrit MSN IM : Gordon3dBrit @ 3dSceneGraph.com __________________________________________________________ Telephone (Cell): (+1) 571-265-2612 <-- Note New Number Telephone (Work): (+1) 703-437-7651 "Self defence is not a function of learning tricks but is a function of how quickly and intensely one can arouse one's instinct for survival" - Master Tambo Tetsura -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Stefan Kombrink Sent: Tuesday, June 19, 2007 11:01 AM To: osg users Subject: Re: [osg-users] performance of "debug" builds Gordon, I don't understand, I thought this option alters the behaviour of the built DLLS (in this case osg) and therefore modified the CMakeLists.txt like this: IF(WIN32) ADD_DEFINITIONS(-D_SCL_SECURE_NO_WARNINGS,_HAS_ITERATOR_DEBUGGING=0) #needed for net plugin SET (OSG_SOCKET_LIBS wsock32.lib) # Both Cygwin and Msys need -DNOMINMAX ??? IF(UNIX) ADD_DEFINITIONS(-DNOMINMAX) ENDIF(UNIX) ENDIF(WIN32) How come one only has to do an #define ... in one's own code? Is it a runtime instead of a compile time issue? Well, it recompiles anyways atm Regards, Stefan >8^) _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/ _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
