Hi Jean-Sébastien, "Jean-Sébastien Guay" <[email protected]> wrote: > Hi Jan, > > > Could the CMakeFile.txt be fixed that if no debug version is found cmake > > doesn't fail? I want to build a release (default) and it fails because > > the debug version of OSG is not there - it shouldn't be required for > > building release and/or if not on Windows (you can safely mix > > debug/release except on Windows). Also, on Linux there is usually no "d" > > suffix for debug versions - OSG has a macro to deal with that. > > The OSG libraries are found using the Findosg*.cmake that come with > CMake. Looking at Findosg_functions.cmake (in <my CMake install > dir>/share/cmake-2.6/Modules) I see this:
I have checked this, the code is there. I have cmake-2.6.3.
> Which if I'm reading right, means that if no debug library was found, it
> will set the debug library to the same value as the release library. I
> think that should do what you want?
Yes.
>
> Maybe check which version of CMake you have, and whether your
> Findosg_functions.cmake has this code.
It does. But I am getting this:
CMake Error: The following variables are used in this project, but they are
set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake
files:
OPENTHREADS_LIBRARY_DEBUG
linked by target "osgOcean" in directory
/home/janoc/tmp/download/osgocean-read-only/src/osgOcean
It finds the non-debug OSG successfully but fails on finding debug version of
OpenThreads (which I didn't compile, I have only release one).
I think the issue is in the FindOpenThreads.cmake lacking the code you have
pointed out.
> So
> if you can live with manually setting the debug library to the same
> value as the release library (which you'll need to do only once because
> then the values are cached for the next time you need to run cmake) then
> that might be better.
I can live with it for the time being, but it should be fixed, IMO.
> Committed to SVN trunk. Thanks for the patch.
Welcome.
Regards,
Jan
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

