[flac-dev] How to change the dynamic library project name ogg to libogg?

Ozkan Sezer sezeroz at gmail.com
Wed Jun 7 12:03:12 UTC 2023


On 6/7/23, Martijn van Beurden <mvanb1 at gmail.com> wrote:
> I've added the following to Windows-MSVC.cmake, which I copied from
> Windows-GNU.cmake
>
> set(CMAKE_IMPORT_LIBRARY_PREFIX "lib")
> set(CMAKE_SHARED_LIBRARY_PREFIX "lib")
> set(CMAKE_SHARED_MODULE_PREFIX  "lib")
> set(CMAKE_STATIC_LIBRARY_PREFIX "lib")
> set(CMAKE_FIND_LIBRARY_PREFIXES "lib" "")
>
> When I do that, I still get the same warning:
>
> libogg.exp : warning LNK4070: /OUT:ogg.dll directive in .EXP differs
> from output filename
> 'C:\Users\m_van\flac\build\objs\Release\libogg.dll'; ignoring
> directive
>
> So, apparently either CMake or MSVC is forgetting to rename something,
> somewhere.

Does this help at all? https://github.com/xiph/ogg/pull/72
(Vorbis equivalent: https://github.com/xiph/vorbis/pull/76)


More information about the flac-dev mailing list