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:

All other libraries that I used except Giflib were linked correctly.
Host Environment
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:
main.cpp:
All other libraries that I used except Giflib were linked correctly.