Skip to content

Commit

Permalink
HPCC-29401 CPack fails creating windows install
Browse files Browse the repository at this point in the history
Signed-off-by: Gordon Smith <[email protected]>
  • Loading branch information
GordonSmith committed Apr 17, 2023
1 parent 27d8842 commit 17f1677
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions cmake_modules/commonSetup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -1063,11 +1063,20 @@ IF ("${COMMONSETUP_DONE}" STREQUAL "")
if(ARGV0 STREQUAL "TARGETS")
list(INSERT ARGS 2 "RUNTIME_DEPENDENCY_SET")
list(INSERT ARGS 3 ${ARGV1}_deps)
install(RUNTIME_DEPENDENCY_SET ${ARGV1}_deps
DESTINATION ${LIB_DIR}
POST_INCLUDE_REGEXES "^${VCPKG_FILES_DIR}\/vcpkg_installed\/.*"
POST_EXCLUDE_REGEXES ".*"
)
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 ".*"
)
else()
install(RUNTIME_DEPENDENCY_SET ${ARGV1}_deps
DESTINATION ${LIB_DIR}
POST_INCLUDE_REGEXES "^${VCPKG_FILES_DIR}\/vcpkg_installed\/.*"
POST_EXCLUDE_REGEXES ".*"
)
endif()
endif()
endif()

Expand Down

0 comments on commit 17f1677

Please sign in to comment.