[vcpkg_extract_source_archive] Fix incorrect var usage in vcpkg_extract_source_archive

This commit is contained in:
Robert Schumacher 2018-09-04 16:51:01 -07:00
parent 5d0b0ec82f
commit 06e85f063c

View File

@ -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})