aboutsummaryrefslogtreecommitdiff
path: root/ports/constexpr
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/constexpr
parent4c382b02c73b234122e204d4db709d5a677a3e5e (diff)
downloadvcpkg-36799555441089420f29fcb2724d9fde23bc9ec1.tar.gz
vcpkg-36799555441089420f29fcb2724d9fde23bc9ec1.zip
Introduce SOURCE_PATH to almost all portfiles
Diffstat (limited to 'ports/constexpr')
-rw-r--r--ports/constexpr/portfile.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/ports/constexpr/portfile.cmake b/ports/constexpr/portfile.cmake
index 592e67094..137bf0e60 100644
--- a/ports/constexpr/portfile.cmake
+++ b/ports/constexpr/portfile.cmake
@@ -1,4 +1,5 @@
include(vcpkg_common_functions)
+set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/constexpr-a98b1db39c909e0130d21d3910d4faf97035a625)
vcpkg_download_distfile(ARCHIVE
URLS "https://github.com/elbeno/constexpr/archive/a98b1db39c909e0130d21d3910d4faf97035a625.zip"
FILENAME "constexpr-a98b1db39c909e0130d21d3910d4faf97035a625.zip"
@@ -7,10 +8,9 @@ vcpkg_download_distfile(ARCHIVE
vcpkg_extract_source_archive(${ARCHIVE})
# Put the licence file where vcpkg expects it
-set(SOURCE_DIR ${CURRENT_BUILDTREES_DIR}/src/constexpr-a98b1db39c909e0130d21d3910d4faf97035a625)
-file(COPY ${SOURCE_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/constexpr/LICENSE)
+file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/constexpr/LICENSE)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/constexpr/LICENSE ${CURRENT_PACKAGES_DIR}/share/constexpr/copyright)
# Copy the constexpr header files
-file(GLOB HEADER_FILES ${SOURCE_DIR}/src/include/*.h)
+file(GLOB HEADER_FILES ${SOURCE_PATH}/src/include/*.h)
file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include)