Jean-Sébastien Guay wrote:
Hi Bill,
Will this correctly append the "d" suffix for debug builds? That is,
"osg.lib" for release, and "osgd.lib" for debug. Appending "d" to the
base
library file name is one of the tasks that this macro performs, so if
we're
going to get rid of the macro, I want to make sure we still have a
way to
differentiate between debug and release libs.
Yes, 2.6 should do all that for you now, as long as the things you are
linking are part of the osg cmake build.
Additionally, as Luigi said, the macro puts lib files in
CMAKE_INSTALL_PREFIX/lib, and DLL files in CMAKE_INSTALL_PREFIX/bin,
instead of putting everything in lib/Release or lib/Debug. Is that also
a workaround that should be removed for 2.6?
So, why are you trying to build directly into the install prefix? Why
not let the install command do that work? If you really want to do
that, then you should look at RUNTIME_OUTPUT_DIRECTORY,
ARCHIVE_OUTPUT_DIRECTORY, and LIBRARY_OUTPUT_DIRECTORY target properties.
Is there not a way to have code that works for 2.4 and 2.6, instead of
having to maintain two paths?
Note really, hopefully the macro could be made empty for 2.6.
Thanks for your help, btw.
Sure.
-Bill
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org