aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-09-28 16:21:47 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2016-09-28 16:21:47 -0700
commite4ada711c27221f2abd166c65a11940caff88f51 (patch)
tree54cde592721a1ac9565d7471febe2847d2bca2f4 /scripts
parent1402262962f9f29faa1c611b78b793a389a13843 (diff)
downloadvcpkg-e4ada711c27221f2abd166c65a11940caff88f51.tar.gz
vcpkg-e4ada711c27221f2abd166c65a11940caff88f51.zip
Add Common Ambient Variables to porfile template
Diffstat (limited to 'scripts')
-rw-r--r--scripts/templates/portfile.in.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/templates/portfile.in.cmake b/scripts/templates/portfile.in.cmake
index f74c89aca..7d68d4525 100644
--- a/scripts/templates/portfile.in.cmake
+++ b/scripts/templates/portfile.in.cmake
@@ -1,3 +1,12 @@
+# Common Ambient Variables:
+# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg>
+# TARGET_TRIPLET is the current triplet (x86-windows, etc)
+# PORT is the current port name (zlib, etc)
+# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT}
+# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET}
+#
+
+include(${CMAKE_TRIPLET_FILE})
include(vcpkg_common_functions)
vcpkg_download_distfile(ARCHIVE
URLS "@URL@"