aboutsummaryrefslogtreecommitdiff
path: root/scripts/ports.cmake
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-05-02 20:34:11 -0700
committerRobert Schumacher <roschuma@microsoft.com>2017-05-03 04:12:28 -0700
commit4633c5e0ea8560ac17c14aa56e50bf3693017f51 (patch)
tree543c1994c5b9b244bb3a9517fd4dfbde389afffc /scripts/ports.cmake
parentf10861fa7af9bd675cb4e80ea31d85d7e5c6d906 (diff)
downloadvcpkg-4633c5e0ea8560ac17c14aa56e50bf3693017f51.tar.gz
vcpkg-4633c5e0ea8560ac17c14aa56e50bf3693017f51.zip
[vcpkg] Add support for installing from HEAD
Diffstat (limited to 'scripts/ports.cmake')
-rw-r--r--scripts/ports.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/ports.cmake b/scripts/ports.cmake
index 721201b49..69606ea2e 100644
--- a/scripts/ports.cmake
+++ b/scripts/ports.cmake
@@ -88,6 +88,9 @@ if(CMD MATCHES "^BUILD$")
if (DEFINED VCPKG_POLICY_EMPTY_INCLUDE_FOLDER)
file(APPEND ${BUILD_INFO_FILE_PATH} "PolicyEmptyIncludeFolder: ${VCPKG_POLICY_EMPTY_INCLUDE_FOLDER}\n")
endif()
+ if (DEFINED VCPKG_HEAD_VERSION)
+ file(APPEND ${BUILD_INFO_FILE_PATH} "Version: ${VCPKG_HEAD_VERSION}\n")
+ endif()
elseif(CMD MATCHES "^CREATE$")
file(TO_NATIVE_PATH ${VCPKG_ROOT_DIR} NATIVE_VCPKG_ROOT_DIR)
file(TO_NATIVE_PATH ${DOWNLOADS} NATIVE_DOWNLOADS)