Skip to content

Commit

Permalink
Adding debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
myst6re committed Feb 2, 2025
1 parent a933f69 commit 59d51c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ endif()

# Deploy zlib
if(WIN32)
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
if (CMAKE_BUILD_TYPE STREQUAL "Debug" AND ZLIB_LIBRARY_DEBUG)
get_filename_component(_ZLIB_DLL_PATH "${ZLIB_LIBRARY_DEBUG}" DIRECTORY)
else()
get_filename_component(_ZLIB_DLL_PATH "${ZLIB_LIBRARY_RELEASE}" DIRECTORY)
Expand All @@ -62,7 +62,7 @@ if(WIN32)
else()
set(_ZLIB_DLL_FILENAME "zlib")
endif()
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
if (CMAKE_BUILD_TYPE STREQUAL "Debug" AND ZLIB_LIBRARY_DEBUG)
set(_ZLIB_DLL_FILENAME "${_ZLIB_DLL_FILENAME}d")
endif()
if(VCPKG_TOOLCHAIN)
Expand Down

0 comments on commit 59d51c5

Please sign in to comment.