On 11/14/2012 09:54 AM, Daniel Schmid wrote:
> Hi all
>
>
>
> I use the following lines to find the libraries of osg:
>
>
>
> SET(OSGLIBRARIES osgDB osgUtil osgGA osgViewer osgText osgSim
> osgParticle osgShadow osgManipulator)
>
> FIND_PACKAGE(OpenSceneGraph 3.0.1 COMPONENTS ${OSGLIBRARIES} REQUIRED)
>
>
>
> Now I want to look for debug libraries. I specify the env path to the
> correct placement of debug compilation, but cmake still tries to find
> the osgXXX libs instead of osgXXXd libs. My CMAKE_BUILD_TYPE is
> correctly set to Debug. What do I have to configure in order that the
> debug libraries (which exist) are found and used?
>
>
>
> Regards
>
Hi Daniel,
a quick look at the cmake modules indicates that these modules already
seem to look for the debug versions. Release versions are stored in a
variables named like ${module}_LIBRARY. If available the corresponding
debug version are stored ${module}_LIBRARY_DEBUG variables. It looks
like there is no list with all debug versions appended.
So, in your case you just need to use these variables in the
target_link_libraries() call.
Regards
Mathias
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org