[vcpkg_clean_executables_in_bin] Clean bundles (#28335)

This commit is contained in:
Kai Pastor 2022-12-15 03:23:44 +01:00 committed by GitHub
parent 7d74d8dc09
commit 56765209ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,6 +33,12 @@ function(vcpkg_clean_executables_in_bin)
"${CURRENT_PACKAGES_DIR}/bin/${file_name}.pdb"
"${CURRENT_PACKAGES_DIR}/debug/bin/${file_name}.pdb"
)
if(NOT VCPKG_TARGET_BUNDLE_SUFFIX STREQUAL "")
file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/bin/${file_name}${VCPKG_TARGET_BUNDLE_SUFFIX}"
"${CURRENT_PACKAGES_DIR}/debug/bin/${file_name}${VCPKG_TARGET_BUNDLE_SUFFIX}"
)
endif()
endforeach()
z_vcpkg_clean_executables_in_bin_remove_directory_if_empty("${CURRENT_PACKAGES_DIR}/bin")