mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 20:23:02 +08:00
[vcpkg_extract_source_archive] Fix incorrect var usage in vcpkg_extract_source_archive
This commit is contained in:
parent
5d0b0ec82f
commit
06e85f063c
@ -36,7 +36,7 @@ function(vcpkg_extract_source_archive ARCHIVE)
|
||||
set(WORKING_DIRECTORY ${ARGV1})
|
||||
endif()
|
||||
|
||||
get_filename_component(ARCHIVE_FILENAME ${ARCHIVE} NAME)
|
||||
get_filename_component(ARCHIVE_FILENAME "${ARCHIVE}" NAME)
|
||||
if(NOT EXISTS ${WORKING_DIRECTORY}/${ARCHIVE_FILENAME}.extracted)
|
||||
message(STATUS "Extracting source ${ARCHIVE}")
|
||||
file(MAKE_DIRECTORY ${WORKING_DIRECTORY})
|
||||
@ -94,7 +94,7 @@ function(vcpkg_extract_source_archive_ex)
|
||||
if(NOT EXISTS ${SOURCE_PATH})
|
||||
set(TEMP_DIR "${_vesae_WORKING_DIRECTORY}/TEMP")
|
||||
file(REMOVE_RECURSE ${TEMP_DIR})
|
||||
vcpkg_extract_source_archive("${ARCHIVE}" "${TEMP_DIR}")
|
||||
vcpkg_extract_source_archive("${_vesae_ARCHIVE}" "${TEMP_DIR}")
|
||||
|
||||
if(_vesae_NO_REMOVE_ONE_LEVEL)
|
||||
set(TEMP_SOURCE_PATH ${TEMP_DIR})
|
||||
|
Loading…
Reference in New Issue
Block a user