aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-10-05 16:59:59 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2016-10-05 16:59:59 -0700
commit0aa4dfb718f9038a251fa90a2b91115dbf2abf7b (patch)
treeafe12329eeaa4823d20a2dcd3e005c626e0b69ed
parent7a90372fd0cdaee8d7d7f01f172a73cf503d0088 (diff)
downloadvcpkg-0aa4dfb718f9038a251fa90a2b91115dbf2abf7b.tar.gz
vcpkg-0aa4dfb718f9038a251fa90a2b91115dbf2abf7b.zip
Update portfile template to include SOURCE_PATH
-rw-r--r--scripts/templates/portfile.in.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/templates/portfile.in.cmake b/scripts/templates/portfile.in.cmake
index 7d68d4525..760b6a700 100644
--- a/scripts/templates/portfile.in.cmake
+++ b/scripts/templates/portfile.in.cmake
@@ -8,6 +8,7 @@
include(${CMAKE_TRIPLET_FILE})
include(vcpkg_common_functions)
+set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/@ROOT_NAME@)
vcpkg_download_distfile(ARCHIVE
URLS "@URL@"
FILENAME "@FILENAME@"
@@ -16,7 +17,7 @@ vcpkg_download_distfile(ARCHIVE
vcpkg_extract_source_archive(${ARCHIVE})
vcpkg_configure_cmake(
- SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/@ROOT_NAME@
+ SOURCE_PATH ${SOURCE_PATH}
# OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 -DUSE_THIS_TOO=2
# OPTIONS_RELEASE -DOPTIMIZE=1
# OPTIONS_DEBUG -DDEBUGGABLE=1
@@ -26,5 +27,5 @@ vcpkg_build_cmake()
vcpkg_install_cmake()
# Handle copyright
-#file(COPY ${CURRENT_BUILDTREES_DIR}/src/@ROOT_NAME@/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/@PORT@)
+#file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/@PORT@)
#file(RENAME ${CURRENT_PACKAGES_DIR}/share/@PORT@/LICENSE ${CURRENT_PACKAGES_DIR}/share/@PORT@/copyright) \ No newline at end of file