-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug library suffix missing #636
Comments
Good catch, it's definitely a bug that the debug version of the library doesn't have a distinct suffix when installed. Could you submit a PR? |
Fixed in c157100. Thanks for reporting! |
Unfortunately this messes up things :( on non-MSVC platforms: the resulting library is Having I would rather leave this option to one who creates the package: ones who need I myself making a Conan package for fmt and would rather have a well-defined name even if I have to use VS. |
I suggest fixing |
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 addingset(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?
The text was updated successfully, but these errors were encountered: