Hello Robert,
With the aim of tracking down the introduction of this workaround I've
gone through the svn logs for OsgMacroUtils.cmake and it looks like
the revision of importance is 7865 - this just so happens to be the
latest update to OsgmacroUtils so is a pretty recent change:
Hmm, interesting. But if you look at the TARGET_LINK_LIBRARIES line
before the change, it still did not have the .lib extension (which is
the problem here - it should have it). So that particular change is not
the source of the problem.
So essentially, we have:
* before rev 7865
===> libraries did not have .lib
* after rev 7865
===> libraries have .lib only when not building from the IDE (i.e. when
building with nmake)
* what we want (which fixes it for CMake 2.6 and does not adversely
affect CMake 2.4)
===> libraries have .lib in all cases
As far as I can see, this will
a) fix the build for CMake 2.6
b) have no effect for CMake 2.4 (tested at work yesterday)
c) have no effect for nmake (it's what was added to make it work on nmake)
Of course, I'd like to know if it will break something else. But
honestly, I think we cover pretty much 100% of the possible cases on
Windows with MSVC here... And no one has stepped up to say it will break
it for them.
J-S
--
______________________________________________________
Jean-Sebastien Guay [EMAIL PROTECTED]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org