[osg-submissions] Plugin DLL search order fix for Win32
Luigi Calori
l.calori at cineca.it
Mon Aug 27 17:19:00 PDT 2007
Hi Robert and Eric, the suggestion would have been precious... had it
come before, as I went experimenting exactly that path... sic
Anyway, I managed to just rename the dll, not the lib, by prefixing dll
with lib.
I did not tested yet how the renaming affect find, but, having not
changed the .lib name, there are chances it does not affect at all,
do find_library search also for .dll ?
If you want to look at patches, here is full files and patches zipped.
There is one noticeable side effect though:
CMake (at least 2.4-7) seems to have an inconsistency between release
and debug build: it accept IMPORT_PREFIX and PREFIX when it comes to
producing the output, in both build types,
but then it rely on targetname when in release and on PREFIX in debug
when computing target dependency and lib linking (at least this is my
impression)
So I had to name explicitely lib linking and add explicitely
dependencies, resembling behaviour when used from an external project.
regards
Luigi
E. Wing wrote:
>On 8/27/07, Robert Osfield <robert.osfield at gmail.com> wrote:
>
>
>>Hi Luigi,
>>
>>OK I'll wait till your happy.
>>
>>Personally I'd prefer to see lib or executable renaming rather than a
>>more complicated build system such as with copying things around. I
>>don't have an issue with calling the core libraries lib*.lib lib*.dll,
>>its a little bit different than Windows norm, but it shouldn't require
>>too much in the way of changes for end users.
>>
>>
>
>lib* prefixes for Windows is a bad idea. It breaks different
>assumptions CMake likes to make elsewhere in its code base,
>particularly noticable in the way it implements FIND*. Please don't go
>with the lib* prefixes.
>_______________________________________________
>osg-submissions mailing list
>osg-submissions at lists.openscenegraph.org
>http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build_in_one_folder_rename_dll.zip
Type: application/x-zip-compressed
Size: 18112 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20070828/b4bc803d/attachment-0001.bin
More information about the osg-submissions
mailing list