[vcpkg] Move include ports.cmake after defining multiple macros (#29916)

Co-authored-by: jyu49 <yu_jack@apple.com>
Co-authored-by: Monica <v-liumonica@microsoft.com>
This commit is contained in:
Jack·Boos·Yu 2023-04-21 07:09:01 +08:00 committed by GitHub
parent 03a211eb3a
commit 3f73dcd7f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -129,18 +129,18 @@ if(CMD STREQUAL "BUILD")
include("${CMAKE_TRIPLET_FILE}")
if (DEFINED VCPKG_PORT_CONFIGS)
foreach(VCPKG_PORT_CONFIG IN LISTS VCPKG_PORT_CONFIGS)
include("${VCPKG_PORT_CONFIG}")
endforeach()
endif()
set(HOST_TRIPLET "${_HOST_TRIPLET}")
set(CURRENT_HOST_INSTALLED_DIR "${_VCPKG_INSTALLED_DIR}/${HOST_TRIPLET}" CACHE PATH "Location to install final packages for the host")
set(TRIPLET_SYSTEM_ARCH "${VCPKG_TARGET_ARCHITECTURE}")
include("${SCRIPTS}/cmake/vcpkg_common_definitions.cmake")
if (DEFINED VCPKG_PORT_CONFIGS)
foreach(VCPKG_PORT_CONFIG IN LISTS VCPKG_PORT_CONFIGS)
include("${VCPKG_PORT_CONFIG}")
endforeach()
endif()
set(Z_VCPKG_ERROR_LOG_COLLECTION_FILE "${CURRENT_BUILDTREES_DIR}/error-logs-${TARGET_TRIPLET}.txt")
file(REMOVE "${Z_VCPKG_ERROR_LOG_COLLECTION_FILE}")