aboutsummaryrefslogtreecommitdiff
path: root/scripts/ports.cmake
diff options
context:
space:
mode:
authorras0219 <robertallenschumacher@gmail.com>2020-06-22 14:14:36 -0700
committerGitHub <noreply@github.com>2020-06-22 14:14:36 -0700
commitaef838536ea3a08e3c1030ead553ca6456cc7fe3 (patch)
tree37f6b5437b0cbb2b5a3111a8fee391b9f0994297 /scripts/ports.cmake
parent2bf1f30debfac3f55c887855d82abd008f786a1a (diff)
downloadvcpkg-aef838536ea3a08e3c1030ead553ca6456cc7fe3.tar.gz
vcpkg-aef838536ea3a08e3c1030ead553ca6456cc7fe3.zip
[vcpkg] Track compiler information in ABI (#11654)
* [vcpkg] Refactor out abi_tags_from_pre_build_info() * [vcpkg] Track Windows toolchain file in triplet hash * [vcpkg] Improve error messages when constructing PreBuildInfo * [vcpkg] Extract InstallPlanAction::BuildAbiInfo * [vcpkg] Extract Build::EnvCache and private-impl VcpkgPaths * [vcpkg] Enable compiler hash detection when binarycaching is enabled * [vcpkg] Downgrade warning about missing ABI keys When binarycaching is not enabled, this warning is spurious and provides no user value. * [vcpkg] Cleanup * [vcpkg] Refactor compiler tracking into triplet abi computation Move several static global caches into VcpkgPaths/EnvCache. Add feature flag 'compilertracking' to enable the new feature. * [vcpkg] Refactor out PreBuildInfo::using_vcvars() Move VcpkgTripletVar into build.cpp because it is not used outside that file. * [vcpkg] Address some code analysis warnings Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
Diffstat (limited to 'scripts/ports.cmake')
-rw-r--r--scripts/ports.cmake7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/ports.cmake b/scripts/ports.cmake
index cd687026f..8c7c71d34 100644
--- a/scripts/ports.cmake
+++ b/scripts/ports.cmake
@@ -43,9 +43,6 @@ if(CMD MATCHES "^BUILD$")
if(NOT EXISTS ${CURRENT_PORT_DIR}/portfile.cmake)
message(FATAL_ERROR "Port is missing portfile: ${CURRENT_PORT_DIR}/portfile.cmake")
endif()
- if(NOT EXISTS ${CURRENT_PORT_DIR}/CONTROL)
- message(FATAL_ERROR "Port is missing control file: ${CURRENT_PORT_DIR}/CONTROL")
- endif()
unset(PACKAGES_DIR)
unset(BUILDTREES_DIR)
@@ -74,7 +71,9 @@ if(CMD MATCHES "^BUILD$")
include(${SCRIPTS}/cmake/vcpkg_common_definitions.cmake)
include(${SCRIPTS}/cmake/vcpkg_common_functions.cmake)
include(${CURRENT_PORT_DIR}/portfile.cmake)
- include(${SCRIPTS}/build_info.cmake)
+ if(DEFINED PORT)
+ include(${SCRIPTS}/build_info.cmake)
+ endif()
elseif(CMD MATCHES "^CREATE$")
file(TO_NATIVE_PATH ${VCPKG_ROOT_DIR} NATIVE_VCPKG_ROOT_DIR)
file(TO_NATIVE_PATH ${DOWNLOADS} NATIVE_DOWNLOADS)