[osg-users] SO version inconsistency

Alberto Luaces aluaces at udc.es
Wed Nov 18 07:20:17 PST 2009


Hi Paul,

Paul Martz writes:

> (I don't suppose there's a way we could make these share the same
> source, sort of like was done with osg/Config...)

Why not? It should be a matter of creating a Version.in file with this
changes:

#define OPENSCENEGRAPH_MAJOR_VERSION    @OPENSCENEGRAPH_MAJOR_VERSION@
#define OPENSCENEGRAPH_MINOR_VERSION    @OPENSCENEGRAPH_MINOR_VERSION@
#define OPENSCENEGRAPH_PATCH_VERSION    @OPENSCENEGRAPH_PATCH_VERSION@
#define OPENSCENEGRAPH_SOVERSION        @OPENSCENEGRAPH_SOVERSION@

and then calling the CMake command

CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/include/osg/Version.in
    ${PROJECT_SOURCE_DIR}/include/osg/Version
    @ONLY
    )

Regards,

Alberto


More information about the osg-users mailing list