diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2016-11-02 16:38:39 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2016-11-02 16:38:39 -0700 |
| commit | 70fe3d15be2d68b46c5d58aacf488d859895a589 (patch) | |
| tree | d23c1c664caf751e2cc1b9fccd1b81f809f8234c | |
| parent | f25c8c8da58648df46ca569aefcffd825d594298 (diff) | |
| download | vcpkg-70fe3d15be2d68b46c5d58aacf488d859895a589.tar.gz vcpkg-70fe3d15be2d68b46c5d58aacf488d859895a589.zip | |
[openjpeg] Remove bin directories in static builds
| -rw-r--r-- | ports/openjpeg/portfile.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ports/openjpeg/portfile.cmake b/ports/openjpeg/portfile.cmake index 718ca6ca1..9ce215bbc 100644 --- a/ports/openjpeg/portfile.cmake +++ b/ports/openjpeg/portfile.cmake @@ -24,6 +24,11 @@ string(REPLACE "\${_IMPORT_PREFIX}" "\${_IMPORT_PREFIX}/debug" OPENJPEG_DEBUG_MO file(WRITE ${CURRENT_PACKAGES_DIR}/share/openjpeg/OpenJPEGTargets-debug.cmake "${OPENJPEG_DEBUG_MODULE}") file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) +# Cleanup bin directories in static builds +if(VCPKG_LIBRARY_LINKAGE STREQUAL static) + file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin) +endif() + # Cleanup Visual C++ Redistributable runtime file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/msvcp140.dll) file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/vcruntime140.dll) |
