aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-12-07 15:25:33 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2016-12-07 15:25:33 -0800
commit220a8597c2ee8088ff36309eaf88b51fea21f297 (patch)
treebd166627f425756bbc67ba836bd0e773587bad3c
parent7555e6576bff0b588edb40d4b531a92546de2b2f (diff)
downloadvcpkg-220a8597c2ee8088ff36309eaf88b51fea21f297.tar.gz
vcpkg-220a8597c2ee8088ff36309eaf88b51fea21f297.zip
[glbinding] Extract SOURCE_PATH variable
-rw-r--r--ports/glbinding/portfile.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/ports/glbinding/portfile.cmake b/ports/glbinding/portfile.cmake
index 6da7d4858..165c8d889 100644
--- a/ports/glbinding/portfile.cmake
+++ b/ports/glbinding/portfile.cmake
@@ -7,14 +7,14 @@
#
include(vcpkg_common_functions)
-
+set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/glbinding-2.1.1)
vcpkg_download_distfile(ARCHIVE
URLS "https://github.com/cginternals/glbinding/archive/v2.1.1.zip"
FILENAME "glbinding-2.1.1.zip"
SHA512 66b21853a4f4760b7b22cafd5211958769c513e83be999018fe79cf56a9271e0e28566caaa2286393f54ac2154d564a68d12159598d03c965adf6756f3753f11
)
vcpkg_extract_source_archive(${ARCHIVE})
-vcpkg_configure_cmake(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/glbinding-2.1.1)
+vcpkg_configure_cmake(SOURCE_PATH ${SOURCE_PATH})
#vcpkg_build_cmake()
vcpkg_install_cmake()
@@ -54,7 +54,7 @@ file(REMOVE ${CURRENT_PACKAGES_DIR}/AUTHORS
)
# Handle copyright
-file(COPY ${CURRENT_BUILDTREES_DIR}/src/glbinding-2.1.1/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/glbinding)
+file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/glbinding)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/glbinding/LICENSE ${CURRENT_PACKAGES_DIR}/share/glbinding/copyright)
vcpkg_copy_pdbs() \ No newline at end of file