Hi Robert,

Unfortunately, CMake at present doesn't support different executable types
(e.g., static and dynamic libraries) in different VisualStudio
configurations. So there is no way we can add the StaticDebug and
StaticRelease types to a Visual Studio solution, I think. An alternative
way may be to add a series of static_osg* projects in the same VS solution
and user can thus build dynamic and static libraries at the same time. But
it may not be appropriate to every Windows user.

Cheers,

Wang Rui



2013/6/28 Robert Osfield <[email protected]>

> 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
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to