Skip to content
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

[giflib] Debug library linked in release configuration #26833

Closed
Chlumsky opened this issue Sep 16, 2022 · 1 comment · Fixed by #27369
Closed

[giflib] Debug library linked in release configuration #26833

Chlumsky opened this issue Sep 16, 2022 · 1 comment · Fixed by #27369
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@Chlumsky
Copy link
Contributor

Host Environment

  • OS: Windows 10 & 11
  • Compiler: Visual Studio 2015, 2019, 2022

To Reproduce

CMake project + vcpkg manifest.

vcpkg.json:

{
    "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
    "name": "vcpkg-giflib-bug",
    "version": "1.0.0",
    "builtin-baseline": "a1737683a6f8ec5d8673890581c2a8c55838d411",
    "dependencies": [ "giflib" ]
}

CMakeLists.txt:

cmake_minimum_required(VERSION 3.16)
project(vcpkg-giflib-bug)
find_package(GIF REQUIRED)
add_executable(vcpkg-giflib-bug main.cpp)
target_link_libraries(vcpkg-giflib-bug PRIVATE GIF::GIF)

main.cpp:

void main() { }

image

All other libraries that I used except Giflib were linked correctly.

@Chlumsky Chlumsky added the category:port-bug The issue is with a library, which is something the port should already support label Sep 16, 2022
@dg0yt
Copy link
Contributor

dg0yt commented Sep 16, 2022

CMake's FindGIF.cmake doesn't support multi-config.
A vcpkg cmake wrapper would mitigate the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
3 participants