Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/cmake/vcpkg_download_distfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ If you do not know the SHA512, add it as 'SHA512 0' and retry.")

set(downloaded_file_path "${DOWNLOADS}/${arg_FILENAME}")

# We can assume DOWNLOADS already exists if we are running, but `arg_FILENAME` may have /s in it
# where the caller expects subdirectories to be created.
get_filename_component(directory_component "${arg_FILENAME}" DIRECTORY)
if (NOT "${directory_component}" STREQUAL "")
if ("${directory_component}" STREQUAL "")
file(MAKE_DIRECTORY "${DOWNLOADS}")
else()
file(MAKE_DIRECTORY "${DOWNLOADS}/${directory_component}")
endif()

Expand Down
Loading