Hi Rui, I've just done a review of these changes and am torn. I like being able to just set one variable, but not comfortable with the fact that is isn't supportable under VisualStudio.
Robert. On 26 January 2013 07:20, Wang Rui <[email protected]> wrote: > Hi Robert, > > I have just made a few changes to the CMakeLists.txt in the root and > OpenThreads directories, which will add two new build types: StaticDebug and > StaticRelease. > > One will not have to change the DYNAMIC_OPENSCENEGRAPH and > DYNAMIC_OPENTHREADS options when they want a static version, but just type: > # cmake . -DCMAKE_BUILD_TYPE=StaticRelease > # make > > And the generated files will be added the "_static" postfix for > distinguishing with dynamic ones. The postfix can be changed by editing the > CMAKE_STATICRELEASE_POSTFIX flag. > > Note that Visual Studio developers can't use this feature because CMake > doesn't currently support build static/dynamic libraries of the same project > in different configurations. They may select NMake makefiles instead or > continue using the DYNAMIC_* options. > > Cheers, > > Wang Rui > > _______________________________________________ > 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
