diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-07-17 18:20:44 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-17 18:20:44 -0700 |
| commit | f31dd7dcaf174d32275673632dbca2df0eed44f1 (patch) | |
| tree | 511b31b72e37ed6c2c2ea7fcf18eabc9c0794de6 | |
| parent | b8703d958ae4dd98e88351804d6b6ce16c83adcf (diff) | |
| parent | 2cd756033a9505c4235f522e7e2f07d61949f57f (diff) | |
| download | vcpkg-f31dd7dcaf174d32275673632dbca2df0eed44f1.tar.gz vcpkg-f31dd7dcaf174d32275673632dbca2df0eed44f1.zip | |
Merge pull request #1471 from jasjuang/master
[alembic] fix cmake error when using find_package in down stream project
| -rw-r--r-- | ports/alembic/CONTROL | 2 | ||||
| -rw-r--r-- | ports/alembic/portfile.cmake | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/ports/alembic/CONTROL b/ports/alembic/CONTROL index 29ec78bc1..cdd9a01e7 100644 --- a/ports/alembic/CONTROL +++ b/ports/alembic/CONTROL @@ -1,4 +1,4 @@ Source: alembic -Version: 1.7.1 +Version: 1.7.1-1 Build-Depends:ilmbase Description: Alembic is an open framework for storing and sharing scene data that includes a C++ library, a file format, and client plugins and applications. http://alembic.io/ diff --git a/ports/alembic/portfile.cmake b/ports/alembic/portfile.cmake index b57a1232d..c98a84e57 100644 --- a/ports/alembic/portfile.cmake +++ b/ports/alembic/portfile.cmake @@ -32,6 +32,16 @@ file(REMOVE ${DEBUG_EXE}) file(RENAME ${CURRENT_PACKAGES_DIR}/lib/Alembic.dll ${CURRENT_PACKAGES_DIR}/bin/Alembic.dll) file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/Alembic.dll ${CURRENT_PACKAGES_DIR}/debug/bin/Alembic.dll) +file(READ ${CURRENT_PACKAGES_DIR}/share/Alembic/AlembicTargets-debug.cmake DEBUG_CONFIG) +string(REPLACE "\${_IMPORT_PREFIX}/debug/lib/Alembic.dll" + "\${_IMPORT_PREFIX}/debug/bin/Alembic.dll" DEBUG_CONFIG ${DEBUG_CONFIG}) +file(WRITE ${CURRENT_PACKAGES_DIR}/share/Alembic/AlembicTargets-debug.cmake "${DEBUG_CONFIG}") + +file(READ ${CURRENT_PACKAGES_DIR}/share/Alembic/AlembicTargets-release.cmake RELEASE_CONFIG) +string(REPLACE "\${_IMPORT_PREFIX}/lib/Alembic.dll" + "\${_IMPORT_PREFIX}/bin/Alembic.dll" RELEASE_CONFIG ${RELEASE_CONFIG}) +file(WRITE ${CURRENT_PACKAGES_DIR}/share/Alembic/AlembicTargets-release.cmake "${RELEASE_CONFIG}") + # Put the license file where vcpkg expects it file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/Alembic/) file(RENAME ${CURRENT_PACKAGES_DIR}/share/Alembic/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/Alembic/copyright) |
