diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2016-09-28 17:05:56 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2016-09-28 17:05:56 -0700 |
| commit | 36799555441089420f29fcb2724d9fde23bc9ec1 (patch) | |
| tree | 4a43133e1aa52ce71d8b9a85f4c6bd20a5d2ffa8 /ports/rapidjson | |
| parent | 4c382b02c73b234122e204d4db709d5a677a3e5e (diff) | |
| download | vcpkg-36799555441089420f29fcb2724d9fde23bc9ec1.tar.gz vcpkg-36799555441089420f29fcb2724d9fde23bc9ec1.zip | |
Introduce SOURCE_PATH to almost all portfiles
Diffstat (limited to 'ports/rapidjson')
| -rw-r--r-- | ports/rapidjson/portfile.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ports/rapidjson/portfile.cmake b/ports/rapidjson/portfile.cmake index 53008daea..d907210d0 100644 --- a/ports/rapidjson/portfile.cmake +++ b/ports/rapidjson/portfile.cmake @@ -1,4 +1,5 @@ include(vcpkg_common_functions) +SET(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/rapidjson-879def80f2e466cdf4c86dc7e53ea2dd4cafaea0) vcpkg_download_distfile(ARCHIVE URLS "https://github.com/miloyip/rapidjson/archive/879def80f2e466cdf4c86dc7e53ea2dd4cafaea0.zip" FILENAME "rapidjson-879def80f2e466cdf4c86dc7e53ea2dd4cafaea0.zip" @@ -7,9 +8,9 @@ vcpkg_download_distfile(ARCHIVE vcpkg_extract_source_archive(${ARCHIVE}) # Put the licence file where vcpkg expects it -file(COPY ${CURRENT_BUILDTREES_DIR}/src/rapidjson-879def80f2e466cdf4c86dc7e53ea2dd4cafaea0/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/rapidjson) +file(COPY ${SOURCE_PATH}/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/rapidjson) file(RENAME ${CURRENT_PACKAGES_DIR}/share/rapidjson/license.txt ${CURRENT_PACKAGES_DIR}/share/rapidjson/copyright) # Copy the rapidjson header files -file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/rapidjson-879def80f2e466cdf4c86dc7e53ea2dd4cafaea0/include DESTINATION ${CURRENT_PACKAGES_DIR} FILES_MATCHING PATTERN "*.h") +file(INSTALL ${SOURCE_PATH}/include DESTINATION ${CURRENT_PACKAGES_DIR} FILES_MATCHING PATTERN "*.h") vcpkg_copy_pdbs() |
