mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 08:22:49 +08:00
Move gpg-agent termination to vcpkg_acquire_msys.
This commit is contained in:
parent
64d6b21c78
commit
c76cc635dc
@ -209,11 +209,3 @@ vcpkg_copy_pdbs()
|
||||
# Handle copyright
|
||||
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/icu)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/icu/LICENSE ${CURRENT_PACKAGES_DIR}/share/icu/copyright)
|
||||
|
||||
# Deal with a stale process created by MSYS
|
||||
if (NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND TASKKILL /F /IM gpg-agent.exe /fi "memusage gt 2"
|
||||
WORKING_DIRECTORY ${SOURCE_PATH}
|
||||
)
|
||||
endif()
|
||||
|
@ -113,5 +113,13 @@ function(vcpkg_acquire_msys PATH_TO_ROOT_OUT)
|
||||
message(STATUS "Acquiring MSYS Packages... OK")
|
||||
endif()
|
||||
|
||||
# Deal with a stale process created by MSYS
|
||||
if (NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND TASKKILL /F /IM gpg-agent.exe /fi "memusage gt 2"
|
||||
WORKING_DIRECTORY ${SOURCE_PATH}
|
||||
)
|
||||
endif()
|
||||
|
||||
set(${PATH_TO_ROOT_OUT} ${PATH_TO_ROOT} PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
Loading…
Reference in New Issue
Block a user