aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2016-09-20 21:10:02 -0700
committerRobert Schumacher <roschuma@microsoft.com>2016-09-20 21:10:02 -0700
commit4897b8c1568253a192de5a9fdfe76c5c155d28b8 (patch)
tree097e45f674c3448377016e224f207a5f8b22f585
parente04ecb3dd85213679d668fec517a113faf973050 (diff)
downloadvcpkg-4897b8c1568253a192de5a9fdfe76c5c155d28b8.tar.gz
vcpkg-4897b8c1568253a192de5a9fdfe76c5c155d28b8.zip
[stb] Avoid renaming extracted archives
-rw-r--r--ports/stb/portfile.cmake7
1 files changed, 3 insertions, 4 deletions
diff --git a/ports/stb/portfile.cmake b/ports/stb/portfile.cmake
index ab990bfaf..79a599df6 100644
--- a/ports/stb/portfile.cmake
+++ b/ports/stb/portfile.cmake
@@ -7,11 +7,10 @@ vcpkg_download_distfile(ARCHIVE
vcpkg_extract_source_archive(${ARCHIVE})
# Put the licence file where vcpkg expects it
-file(RENAME ${CURRENT_BUILDTREES_DIR}/src/stb-e713a69f1ea6ee1e0d55725ed0731520045a5993 ${CURRENT_BUILDTREES_DIR}/src/stb)
-file(COPY ${CURRENT_BUILDTREES_DIR}/src/stb/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/stb/README.md)
+set(SOURCE_DIR ${CURRENT_BUILDTREES_DIR}/src/stb-e713a69f1ea6ee1e0d55725ed0731520045a5993)
+file(COPY ${SOURCE_DIR}/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 ${CURRENT_BUILDTREES_DIR}/src/stb/*.h)
+file(GLOB HEADER_FILES ${SOURCE_DIR}/*.h)
file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include)
-vcpkg_copy_pdbs()