Exclude .DS_Store, fixing #24700 (#24701)

This commit is contained in:
Robert Kearns 2022-05-16 13:40:11 -06:00 committed by GitHub
parent d1135a5fe2
commit e50057d13f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -218,6 +218,8 @@ function(vcpkg_extract_source_archive)
cmake_path(SET temp_source_path "${temp_dir}")
else()
file(GLOB archive_directory "${temp_dir}/*")
# Exclude .DS_Store entries created by the finder on macOS
list(FILTER archive_directory EXCLUDE REGEX ".*/.DS_Store$")
# make sure `archive_directory` is only a single file
if(NOT archive_directory MATCHES ";" AND IS_DIRECTORY "${archive_directory}")
cmake_path(SET temp_source_path "${archive_directory}")