From 115cb236723c9c3abe25fa7c9f103d308a2825b2 Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Wed, 26 Jun 2024 16:42:28 +0200 Subject: [PATCH] Add debug redists --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 83b30cb2..59755773 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -319,6 +319,9 @@ if (MSVC) if (COPY_MSVC_REDISTRIBUTABLES) # Get the list of Visual C++ runtime DLLs set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP True) + if (${CMAKE_BUILD_TYPE} MATCHES "Debug") + set(CMAKE_INSTALL_DEBUG_LIBRARIES_ONLY True) + endif () include(InstallRequiredSystemLibraries) # Create a space sperated list