From aeaa76918da2bce03567602e1becb6c73c75951e Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Tue, 30 Jul 2024 14:37:11 -0700 Subject: [PATCH] update(cmake): Use the correct zlib debug library name on Windows The debug versions of zlib have a "d" in their name, e.g. zlibstaticd.lib. Signed-off-by: Gerald Combs --- cmake/modules/zlib.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/modules/zlib.cmake b/cmake/modules/zlib.cmake index 3f28e04a7e..b03e8acc1b 100644 --- a/cmake/modules/zlib.cmake +++ b/cmake/modules/zlib.cmake @@ -68,10 +68,10 @@ else() else() if(BUILD_SHARED_LIBS) set(ZLIB_LIB_SUFFIX "${CMAKE_SHARED_LIBRARY_SUFFIX}") - set(ZLIB_LIB "${ZLIB_SRC}/lib/zlib${ZLIB_LIB_SUFFIX}") + set(ZLIB_LIB "${ZLIB_SRC}/lib/zlib$<$:d>${ZLIB_LIB_SUFFIX}") else() set(ZLIB_LIB_SUFFIX "${CMAKE_STATIC_LIBRARY_SUFFIX}") - set(ZLIB_LIB "${ZLIB_SRC}/lib/zlibstatic${ZLIB_LIB_SUFFIX}") + set(ZLIB_LIB "${ZLIB_SRC}/lib/zlibstatic$<$:d>${ZLIB_LIB_SUFFIX}") endif() ExternalProject_Add(zlib PREFIX "${PROJECT_BINARY_DIR}/zlib-prefix"