mirror of https://github.com/microsoft/vcpkg.git
Allow vcpkg.exe to set CURRENT_ variables. (#44217)
This commit is contained in:
parent
c9f425188c
commit
b30734e910
|
|
@ -124,8 +124,15 @@ file(TO_CMAKE_PATH "${PACKAGES_DIR}" PACKAGES_DIR)
|
|||
|
||||
set(CURRENT_INSTALLED_DIR "${_VCPKG_INSTALLED_DIR}/${TARGET_TRIPLET}" CACHE PATH "Location to install final packages")
|
||||
|
||||
if(PORT)
|
||||
if(DEFINED CURRENT_BUILDTREES_DIR)
|
||||
file(TO_CMAKE_PATH "${CURRENT_BUILDTREES_DIR}" CURRENT_BUILDTREES_DIR)
|
||||
elseif(PORT)
|
||||
set(CURRENT_BUILDTREES_DIR "${BUILDTREES_DIR}/${PORT}")
|
||||
endif()
|
||||
|
||||
if(DEFINED CURRENT_PACKAGES_DIR)
|
||||
file(TO_CMAKE_PATH "${CURRENT_PACKAGES_DIR}" CURRENT_PACKAGES_DIR)
|
||||
elseif(PORT)
|
||||
set(CURRENT_PACKAGES_DIR "${PACKAGES_DIR}/${PORT}_${TARGET_TRIPLET}")
|
||||
endif()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue