Setting OSG_MSVC_VERSIONED_DLL to OFF appears to fix this issue, and causes
the static .lib names to not contain the SO version. (After I rebuild with
this set to OFF, I'm guessing the stock CMake find scripts will find my
static-built OSG.)

Is that correct? The CMake variable clearly says "DLL", and this is a
static build, so no DLLs are being built. Yet disabling it changes the name
of the output static .lib name.

Just checking.


On Wed, Mar 12, 2014 at 3:17 PM, Paul Martz <[email protected]> wrote:

> Hi all -- Is anyone using CMake to find a static-built OSG? If so, how are
> you getting that to work?
>
> When building static OSG, all the library names are prefixed with
> osg<soversion>. For example, with OSG v3.3.1, the so version is 111, so I
> get libs named: osg111-osg.lib, osg111-osgDB.lib, osg111-osgUtil.lib, etc.
> And the stock CMake find scripts fail to find those libraries because those
> scripts look for osg.lib, osgDB.lib, osgUtil.lib, etc.
>
> Any info would be appreciated.
>    -Paul
>



-- 
   -Paul
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to