diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-05-18 20:32:17 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-05-18 20:32:17 -0700 |
| commit | 6e850ca1bac627e85c9f78379ce9bbab55bec7cc (patch) | |
| tree | f8faccdf71c9fe75212e71af93f7c2cfb3dd65e0 /ports/cppunit | |
| parent | eb1b6c97feabf0150015192dc649a70934d9c9df (diff) | |
| download | vcpkg-6e850ca1bac627e85c9f78379ce9bbab55bec7cc.tar.gz vcpkg-6e850ca1bac627e85c9f78379ce9bbab55bec7cc.zip | |
[cppunit] Use per-triplet source directories
Diffstat (limited to 'ports/cppunit')
| -rw-r--r-- | ports/cppunit/portfile.cmake | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ports/cppunit/portfile.cmake b/ports/cppunit/portfile.cmake index 1f0766d90..14b1d0478 100644 --- a/ports/cppunit/portfile.cmake +++ b/ports/cppunit/portfile.cmake @@ -11,13 +11,16 @@ # include(vcpkg_common_functions) -set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/cppunit-1.13.2) +set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src-${TARGET_TRIPLET}/cppunit-1.13.2) vcpkg_download_distfile(ARCHIVE URLS "http://dev-www.libreoffice.org/src/cppunit-1.13.2.tar.gz" FILENAME "cppunit-1.13.2.tar.gz" SHA512 8f4be569f321d577cec31931f49f4df143bc94e283605509b6ea50c60690aa91a2aed940e7eebd4b2413a4218f9a6c3978d312d8e587eab040283c6563846ecd ) -vcpkg_extract_source_archive(${ARCHIVE}) + +file(REMOVE_RECURSE ${CURRENT_BUILDTREES_DIR}/src-${TARGET_TRIPLET}) +file(MAKE_DIRECTORY ${CURRENT_BUILDTREES_DIR}/src-${TARGET_TRIPLET}) +vcpkg_extract_source_archive(${ARCHIVE} ${CURRENT_BUILDTREES_DIR}/src-${TARGET_TRIPLET}) if (VCPKG_CRT_LINKAGE STREQUAL static) vcpkg_apply_patches( |
