aboutsummaryrefslogtreecommitdiff
path: root/ports/stb
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/stb
parent4c382b02c73b234122e204d4db709d5a677a3e5e (diff)
downloadvcpkg-36799555441089420f29fcb2724d9fde23bc9ec1.tar.gz
vcpkg-36799555441089420f29fcb2724d9fde23bc9ec1.zip
Introduce SOURCE_PATH to almost all portfiles
Diffstat (limited to 'ports/stb')
-rw-r--r--ports/stb/portfile.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/ports/stb/portfile.cmake b/ports/stb/portfile.cmake
index 15414d0da..432d84604 100644
--- a/ports/stb/portfile.cmake
+++ b/ports/stb/portfile.cmake
@@ -1,4 +1,5 @@
include(vcpkg_common_functions)
+set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/stb-e713a69f1ea6ee1e0d55725ed0731520045a5993)
vcpkg_download_distfile(ARCHIVE
URLS "https://github.com/nothings/stb/archive/e713a69f1ea6ee1e0d55725ed0731520045a5993.zip"
FILENAME "stb-e713a69f1ea6ee1e0d55725ed0731520045a5993.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/stb-e713a69f1ea6ee1e0d55725ed0731520045a5993)
-file(COPY ${SOURCE_DIR}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/stb/README.md)
+file(COPY ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/stb/README.md)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/stb/README.md ${CURRENT_PACKAGES_DIR}/share/stb/copyright)
# Copy the stb header files
-file(GLOB HEADER_FILES ${SOURCE_DIR}/*.h)
+file(GLOB HEADER_FILES ${SOURCE_PATH}/*.h)
file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include)