Skip to content

[giflib] Debug library linked in release configuration #26833

@Chlumsky

Description

@Chlumsky

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.

Metadata

Metadata

Assignees

Labels

category:port-bugThe issue is with a library, which is something the port should already support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions