aboutsummaryrefslogtreecommitdiff
path: root/ports/tinyxml2
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/tinyxml2
parent4c382b02c73b234122e204d4db709d5a677a3e5e (diff)
downloadvcpkg-36799555441089420f29fcb2724d9fde23bc9ec1.tar.gz
vcpkg-36799555441089420f29fcb2724d9fde23bc9ec1.zip
Introduce SOURCE_PATH to almost all portfiles
Diffstat (limited to 'ports/tinyxml2')
-rw-r--r--ports/tinyxml2/portfile.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/ports/tinyxml2/portfile.cmake b/ports/tinyxml2/portfile.cmake
index 3e29b857c..3cb7b4338 100644
--- a/ports/tinyxml2/portfile.cmake
+++ b/ports/tinyxml2/portfile.cmake
@@ -1,4 +1,5 @@
include(vcpkg_common_functions)
+set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/tinyxml2-3.0.0)
vcpkg_download_distfile(ARCHIVE
URLS "https://github.com/leethomason/tinyxml2/archive/3.0.0.zip"
FILENAME "tinyxml2-3.0.0.zip"
@@ -7,7 +8,7 @@ vcpkg_download_distfile(ARCHIVE
vcpkg_extract_source_archive(${ARCHIVE})
vcpkg_configure_cmake(
- SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/tinyxml2-3.0.0
+ SOURCE_PATH ${SOURCE_PATH}
# OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1
# OPTIONS_RELEASE -DOPTIMIZE=1
# OPTIONS_DEBUG -DDEBUGGABLE=1
@@ -17,6 +18,6 @@ vcpkg_build_cmake()
vcpkg_install_cmake()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
-file(COPY ${CURRENT_BUILDTREES_DIR}/src/tinyxml2-3.0.0/readme.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/tinyxml2)
+file(COPY ${SOURCE_PATH}/readme.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/tinyxml2)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/tinyxml2/readme.md ${CURRENT_PACKAGES_DIR}/share/tinyxml2/copyright)
vcpkg_copy_pdbs()