aboutsummaryrefslogtreecommitdiff
path: root/ports/geogram
diff options
context:
space:
mode:
authorChao <6785880+ChaoJia@users.noreply.github.com>2019-09-29 22:07:50 +0200
committerCurtis J Bezault <curtbezault@gmail.com>2019-09-29 13:07:50 -0700
commitb9c87f40d487c63d64b384f494da050acd309ce8 (patch)
tree0a38ce32dcd2e27c8792b4dd60239ea78a210568 /ports/geogram
parent3c39089dadbf057b938c228932e39a76b1fbece7 (diff)
downloadvcpkg-b9c87f40d487c63d64b384f494da050acd309ce8.tar.gz
vcpkg-b9c87f40d487c63d64b384f494da050acd309ce8.zip
[alembic,geogram,openimageio]: alembic: in favor of FindOpenEXR.cmake installed alongside package openexr by vcpkg so that debug version of openexr can actually be found and linked into; (#8379)
geogram: remove /src/lib from INTERFACE_INCLUDE_DIRECTORIES in GeogramTargets.cmake, as /src/lib is not a valid include path; openimageio: in favor of FindOpenEXR.cmake and LibRaw-config.cmake installed by vcpkg so that the debug version of openexr and libraw can actually be found and linked into;
Diffstat (limited to 'ports/geogram')
-rw-r--r--ports/geogram/portfile.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/ports/geogram/portfile.cmake b/ports/geogram/portfile.cmake
index 5da48ff89..3bf583d51 100644
--- a/ports/geogram/portfile.cmake
+++ b/ports/geogram/portfile.cmake
@@ -73,6 +73,11 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/doc)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/doc)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(READ ${CURRENT_PACKAGES_DIR}/share/geogram/GeogramTargets.cmake TARGET_CONFIG)
+string(REPLACE [[INTERFACE_INCLUDE_DIRECTORIES "/src/lib;${_IMPORT_PREFIX}/include"]]
+ [[INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"]] TARGET_CONFIG "${TARGET_CONFIG}")
+file(WRITE ${CURRENT_PACKAGES_DIR}/share/geogram/GeogramTargets.cmake "${TARGET_CONFIG}")
+
# Handle copyright
file(COPY ${SOURCE_PATH}/doc/devkit/license.dox DESTINATION ${CURRENT_PACKAGES_DIR}/share/geogram)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/geogram/license.dox ${CURRENT_PACKAGES_DIR}/share/geogram/copyright)