From cdb5dbfae1bedac1d31485f2f8d3b3017d61c8a0 Mon Sep 17 00:00:00 2001 From: Mark Roszko Date: Thu, 23 Jan 2025 03:48:52 +0000 Subject: [PATCH] Add windows runtime copy with install step under msvc (cherry picked from commit 90465d6261e583243b25b885ed38518801520261) Co-authored-by: Marek Roszko --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9be7e27058..5171cb9573 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -573,6 +573,9 @@ if( MSVC ) if( KICAD_WIN32_BUILD_PARALLEL_CL_MP ) string( APPEND CMAKE_CXX_FLAGS " /MP" ) endif() + + set( CMAKE_INSTALL_UCRT_LIBRARIES TRUE ) + include( InstallRequiredSystemLibraries ) endif() # KIFACE_SUFFIX is the file extension used for top level program modules which