From 116ad2df1c020d7fa7f4dc18a460c533aec5d78d Mon Sep 17 00:00:00 2001 From: Vollstrecker Date: Sat, 30 Nov 2024 23:42:03 +0100 Subject: [PATCH] add pdb install, fully superseeds #976 adjust min required version for regex, superseeds #43 --- CMakeLists.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fc234f103..ce5ce3547 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) @@ -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 $ + DESTINATION ${CMAKE_INSTALL_BINDIR} + CONFIGURATIONS Debug OR RelWithDebInfo + OPTIONAL + ) + endif(MSVC) + endif(ZLIB_BUILD_SHARED) if(ZLIB_BUILD_STATIC)