Skip to content

Commit

Permalink
add pdb install, fully superseeds madler#976
Browse files Browse the repository at this point in the history
adjust min required version for regex, superseeds madler#43
  • Loading branch information
Vollstrecker committed Nov 30, 2024
1 parent 66e6844 commit 116ad2d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.4.4...3.15.0)
cmake_minimum_required(VERSION 3.1)
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)

project(zlib C)
Expand Down Expand Up @@ -209,6 +209,15 @@ if(NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL )
RENAME zlib1.dll
DESTINATION "${CMAKE_INSTALL_BINDIR}")
endif(ZLIB_INSTALL_COMPAT_DLL)

if(MSVC)
install(FILES $<TARGET_PDB_FILE:zlib>
DESTINATION ${CMAKE_INSTALL_BINDIR}
CONFIGURATIONS Debug OR RelWithDebInfo
OPTIONAL
)
endif(MSVC)

endif(ZLIB_BUILD_SHARED)

if(ZLIB_BUILD_STATIC)
Expand Down

0 comments on commit 116ad2d

Please sign in to comment.