From b343c10f22e55048d5805c76aabe5926f06f6a22 Mon Sep 17 00:00:00 2001 From: Gordon Smith Date: Mon, 25 Nov 2024 16:21:54 +0000 Subject: [PATCH] HPCC-33028 Win + CMake > v3.28.3 issue REGEX include / exclude getting ignored when declared _after_ the DESTINATION Signed-off-by: Gordon Smith --- cmake_modules/commonSetup.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake_modules/commonSetup.cmake b/cmake_modules/commonSetup.cmake index 1ccf2ee5607..7f3f1304d06 100644 --- a/cmake_modules/commonSetup.cmake +++ b/cmake_modules/commonSetup.cmake @@ -1086,16 +1086,16 @@ IF ("${COMMONSETUP_DONE}" STREQUAL "") list(INSERT ARGS 3 ${ARGV1}_deps) if (WIN32) install(RUNTIME_DEPENDENCY_SET ${ARGV1}_deps - DESTINATION ${EXEC_DIR} PRE_EXCLUDE_REGEXES "api-ms-win-.*\.dll" POST_INCLUDE_REGEXES "^${VCPKG_FILES_DIR}.*" POST_EXCLUDE_REGEXES ".*" + DESTINATION ${EXEC_DIR} ) else() install(RUNTIME_DEPENDENCY_SET ${ARGV1}_deps - DESTINATION ${LIB_DIR} POST_INCLUDE_REGEXES "^${VCPKG_FILES_DIR}\/vcpkg_installed\/.*" POST_EXCLUDE_REGEXES ".*" + DESTINATION ${LIB_DIR} ) endif() endif()