Open
Description
Operating system
Windows
Compiler
MSVC
Steps to reproduce the behavior
Build with VCPKG_BUILD_TYPE=debug
.
Failure logs
-- Fixing pkgconfig file: C:/Users/dsven/CLionProjects/foo/vcpkg/packages/zlib_x64-windows-static-asan/debug/lib/pkgconfig/zlib.pc
CMake Error at scripts/cmake/vcpkg_replace_string.cmake:12 (file):
file failed to open for reading (No such file or directory):
C:/Users/dsven/CLionProjects/foo/vcpkg/packages/zlib_x64-windows-static-asan/include/zconf.h
Call Stack (most recent call first):
ports/zlib/portfile.cmake:47 (vcpkg_replace_string)
scripts/ports.cmake:203 (include)
Additional context
The problem happens because the header is not installed in the debug configuration:
vcpkg/ports/zlib/portfile.cmake
Lines 17 to 24 in 35696bc
And later in the portfile.cmake
the debug include path is not taken into consideration:
vcpkg/ports/zlib/portfile.cmake
Lines 46 to 50 in 35696bc