diff options
| author | Sean Warren <s.warren@garvan.org.au> | 2019-03-31 16:35:10 +1100 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2019-03-30 22:35:10 -0700 |
| commit | 52870c7595a63ade069ae51d5f4ee3a85fe4123f (patch) | |
| tree | d7d7bcd93cc5d9aa7481714f6629cc2018f14dc0 | |
| parent | 55eeb17c66af42a4c0dd2476897bdadca029af74 (diff) | |
| download | vcpkg-52870c7595a63ade069ae51d5f4ee3a85fe4123f.tar.gz vcpkg-52870c7595a63ade069ae51d5f4ee3a85fe4123f.zip | |
[opencv] Make opencv build exportable (#5857)
* [opencv] Make opencv build exportable
* [opencv] bump version number
| -rw-r--r-- | ports/opencv/portfile.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ports/opencv/portfile.cmake b/ports/opencv/portfile.cmake index 7c6594e1b..9ea245ed3 100644 --- a/ports/opencv/portfile.cmake +++ b/ports/opencv/portfile.cmake @@ -383,6 +383,11 @@ file(WRITE ${CURRENT_PACKAGES_DIR}/share/opencv/OpenCVModules-debug.cmake "${OPE file(RENAME ${CURRENT_PACKAGES_DIR}/debug/share/opencv/OpenCVModules.cmake ${CURRENT_PACKAGES_DIR}/share/opencv/OpenCVModules.cmake) +file(READ ${CURRENT_PACKAGES_DIR}/share/opencv/OpenCVModules.cmake OPENCV_MODULES) +string(REPLACE "${CURRENT_INSTALLED_DIR}" + "\${_VCPKG_INSTALLED_DIR}/\${VCPKG_TARGET_TRIPLET}" OPENCV_MODULES "${OPENCV_MODULES}") +file(WRITE ${CURRENT_PACKAGES_DIR}/share/opencv/OpenCVModules.cmake "${OPENCV_MODULES}") + file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) |
