Hello Carsten,

"Carsten Neumann" <carsten_neum...@gmx.net> schrieb im 
Newsbeitrag news:4a3e7c0a.9030...@gmx.net...
>
> first off I believe the fact that it prints the right versions is likely
> a red herring, I don't think cmake 2.6.4 has support for boost 1.39,
> i.e. it is not on the list of versions it looks for and I suspect that
> causes some silly test to fail.
> Can you try extending that list by adding a new variable (case
> sensitive) in the gui:
> Boost_ADDITIONAL_VERSIONS and set its value to "1.39.0 1.39" (without
> the "").
> With that it should suffice to set
> BOOST_ROOT to "D:/Development/support/dist/boost" and
> BOOST_LIBRARYDIR to "D:/Development/support/dist/boost/stage32/lib"
> or stage64 depending for which arch you are building (you need
> BOOST_LIBRARYDIR because of the custom named stage directories)
>
Good catch, with this the boost libraries are found correctly.

>
> hm, we don't have a user switch for that and I've never tried it, but it
> might be enough to go to the Dependencies section in OpenSG's
> CMakeLists.txt and change SET(Boost_USE_STATIC_LIBS OFF) to ON (around
> line 232).
>
It would be fine if that one could be customizable by the user. 
Additionally, I think that the
line
    ADD_DEFINITIONS(-DBOOST_ALL_DYN_LINK)

should only be active on Boost_USE_STATIC_LIBS=OFF

Do I have to change BuildFunctions.cmake as well, in order to get static 
boost linkage? What is the purpose of this file?


May I take the opportunity to ask for the state of affairs with respect the 
build target naming scheme. There happend to be some discussion on the lists 
about changing the current scheme. Any conclusion reached?

Currently, I do see the following build targets:

    Debug -> /MD /Od
    DebugRT -> /MDd /Od
    MinSizeRel -> /MD /O1
    Release -> /MD /O2
    RelWithDebInfo -> /MD /O2

IMHO this is far from perfect, at least for the windows programmer. I would 
like to see at least the following scheme, which I have used successfully 
with OpenSG 1.8 (last try):

    Debug -> /MDd /Od as usually found on windows: suffix 'D'
    DebugOpt -> /MDd /O2 /Ob2 this one is perfect for application 
development with consistent debug runtime. Used for debugging of the host 
application, not of OpenSG: suffix 'OD'
    Release -> /MD /O2 /Ob2 the usual release target: no suffix

Maybe it is possible to give the user a customization point at hand, so that 
he can take responsibility of the actually naming scheme.

Another question. Is the documentation going to be build also from the cmake 
generated platform project files?

Best,
Johannes




------------------------------------------------------------------------------
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to