<div dir="auto">Yes, I've tried that, and libogg.dll and libogg.obj get produced, but I also het a linker warning that libogg.exp contains an out directive that is not consistent, as it points to ogg.dll. So, the files get renamed, but the 'pointer' stays the same. Seems like a bug in either Visual Studio or CMake, but I can't seem to find about it on Google.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op di 6 jun. 2023 21:39 schreef LRN <<a href="mailto:lrn1986@gmail.com">lrn1986@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 06.06.2023 22:33, Martijn van Beurden wrote:<br>
> Hi,<br>
> <br>
> This rabbit hole went quite a bit deeper than I expected. Apparently,<br>
> CMake prepends 'lib' to library names for unix like environments<br>
> (including MinGW) but not for Visual Studio. So, when building on<br>
> Windows, you get either libFLAC.dll and libogg.dll or FLAC.dll and<br>
> ogg.dll depending on what toolchain you're using. I'm not quite sure<br>
> whether this makes sense. I've tried quite a few ways to override this<br>
> behaviour, but the most obvious solutions didn't work.<br>
> <br>
> Sorry, I've been trying various things for two hours today, I give up.<br>
> Perhaps someone else on this list knows the answer.<br>
> <br>
<br>
set_target_properties(foobar PROPERTIES<br>
  SOVERSION ${SO_MAJOR_VERSION} VERSION ${SO_VERSION}<br>
  OUTPUT_NAME foobar<br>
  RUNTIME_OUTPUT_NAME foobar-${SO_MAJOR_VERSION}<br>
  ARCHIVE_OUTPUT_NAME foobar)<br>
<br>
Something like that. This should produce libfoobar-X, where X is the <br>
SO_MAJOR_VERSION value.<br>
<br>
-- <br>
O< ascii ribbon - stop html email! - <a href="http://www.asciiribbon.org" rel="noreferrer noreferrer" target="_blank">www.asciiribbon.org</a><br>
<br>
_______________________________________________<br>
flac-dev mailing list<br>
<a href="mailto:flac-dev@xiph.org" target="_blank" rel="noreferrer">flac-dev@xiph.org</a><br>
<a href="http://lists.xiph.org/mailman/listinfo/flac-dev" rel="noreferrer noreferrer" target="_blank">http://lists.xiph.org/mailman/listinfo/flac-dev</a><br>
</blockquote></div>