aboutsummaryrefslogtreecommitdiff
path: root/ports/sery
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-09-28 17:05:56 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2016-09-28 17:05:56 -0700
commit36799555441089420f29fcb2724d9fde23bc9ec1 (patch)
tree4a43133e1aa52ce71d8b9a85f4c6bd20a5d2ffa8 /ports/sery
parent4c382b02c73b234122e204d4db709d5a677a3e5e (diff)
downloadvcpkg-36799555441089420f29fcb2724d9fde23bc9ec1.tar.gz
vcpkg-36799555441089420f29fcb2724d9fde23bc9ec1.zip
Introduce SOURCE_PATH to almost all portfiles
Diffstat (limited to 'ports/sery')
-rw-r--r--ports/sery/portfile.cmake7
1 files changed, 3 insertions, 4 deletions
diff --git a/ports/sery/portfile.cmake b/ports/sery/portfile.cmake
index 94a236b85..d19fad1c5 100644
--- a/ports/sery/portfile.cmake
+++ b/ports/sery/portfile.cmake
@@ -1,4 +1,5 @@
include(vcpkg_common_functions)
+SET(SOURCE_PATH "${CURRENT_BUILDTREES_DIR}/src/Sery-1.0")
vcpkg_download_distfile(ARCHIVE
URLS "https://github.com/Ninetainedo/Sery/archive/v1.0.zip"
FILENAME "sery-1.0.0.zip"
@@ -6,10 +7,8 @@ vcpkg_download_distfile(ARCHIVE
)
vcpkg_extract_source_archive(${ARCHIVE})
-SET(SERY_ROOT_DIR "${CURRENT_BUILDTREES_DIR}/src/Sery-1.0")
-
vcpkg_configure_cmake(
- SOURCE_PATH ${SERY_ROOT_DIR}
+ SOURCE_PATH ${SOURCE_PATH}
# OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 -DUSE_THIS_TOO=2
# OPTIONS_RELEASE -DOPTIMIZE=1
# OPTIONS_DEBUG -DDEBUGGABLE=1
@@ -23,7 +22,7 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/cmake)
# Handle copyright
-file(COPY ${SERY_ROOT_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/sery)
+file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/sery)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/sery/LICENSE ${CURRENT_PACKAGES_DIR}/share/sery/copyright)
# Moves cmake files where appropriate