Pankaj, Jan, J-S, I've now added a RELEASE_ONLY_BUILD option to the CMakeLists which removes the need for debug libraries. This is now committed to the osgOcean trunk. In visual studio this removes the debug projects from the build menu.
Note: CMake will still look for the debug versions and list them as not found. This behaviour is is part of the CMake's own macros for finding OSG and openthreads so I thought it best to leave it as it is. However, as long as the release only build button is checked it will generate the build without complaining about them. I'd be grateful if you could test this for me. I've run it through VS2008 and it seemed to work but I haven't been able to test it on anything else. Regards, Kim. 2009/10/6 Jean-Sébastien Guay <[email protected]> > Hi Jan, > > Thanks for the investigations on your machine. > > It finds the non-debug OSG successfully but fails on finding debug version >> of OpenThreads (which I didn't compile, I have only release one). >> I think the issue is in the FindOpenThreads.cmake lacking the code you >> have pointed out. >> > > Yeah, ok so for that we can easily send a patch to the CMake project. > However: > > I can live with it for the time being, but it should be fixed, IMO. >> > > Well if Kim can get what he said working, it would be even better. I agree > that silently using the release lib in a debug build would be bad (on > Windows at least, and there's no platform guard for this in the CMake > module's code). At the very least it should warn that it's doing this, but > even better would be setting up our project so that we can do release-only > or release+debug builds as required. > > So good luck Kim, hope you get it working without too much trouble! > > > J-S > -- > ______________________________________________________ > Jean-Sebastien Guay [email protected] > http://www.cm-labs.com/ > http://whitestar02.webhop.org/ > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

