Skip to content

Debug library suffix missing #636

Closed
Closed
@ixSci

Description

@ixSci

Just tried to use the fmt library and stumbled upon either inconsistency or my misunderstanding. I've downloaded the latest library archive, unzipped it and generated an MSVC solution out of it. So far so good. Then I've built the solution both for Debug and Release configuration and then installed both of them to the previously set install prefix. The thing is both Debug and Release library have the same name: fmt.lib and whichever configuration gets installed last will be at the target dir.

I've skimmed over the cmake files the library provides and it looks like (according to fmt-targets-debug.cmake) it actually rightfully expects to have fmtd.lib for the Debug configuration. I locally fixed the issue by adding set(CMAKE_DEBUG_POSTFIX "d") to the fmt CMake script.

Am I doing something wrong or the library build script does not actually generate a separate name for the Debug build?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions