Skip to content

Commit

Permalink
Merge pull request #17254 from GordonSmith/HPCC-29401-WIN_REL_DEPS
Browse files Browse the repository at this point in the history
HPCC-29401 CPack fails creating windows install

Reviewed-by: Gavin Halliday <[email protected]>
Merged-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday authored Apr 17, 2023
2 parents 969765a + 17f1677 commit d43611c
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 d43611c

Please sign in to comment.