Skip to content

Commit

Permalink
[gdcm] properly fix microsoft#6863 instead of wrong microsoft#6901
Browse files Browse the repository at this point in the history
  • Loading branch information
cenit committed Jul 29, 2019
1 parent 429eb43 commit 8582cb7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ports/gdcm/CONTROL
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Source: gdcm
Version: 3.0.0-3
Version: 3.0.0-4
Description: Grassroots DICOM library
Build-Depends: zlib, expat, openjpeg
6 changes: 6 additions & 0 deletions ports/gdcm/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/debug/share
)

file(READ ${CURRENT_PACKAGES_DIR}/share/gdcm/GDCMTargets.cmake GDCM_TARGETS)
string(REPLACE "set(CMAKE_IMPORT_FILE_VERSION 1)"
"set(CMAKE_IMPORT_FILE_VERSION 1)
find_package(OpenJPEG QUIET)" GDCM_TARGETS "${GDCM_TARGETS}")
file(WRITE ${CURRENT_PACKAGES_DIR}/share/gdcm/GDCMTargets.cmake "${GDCM_TARGETS}")

if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
endif()
Expand Down
3 changes: 1 addition & 2 deletions ports/opencv/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,7 @@ find_package(gflags QUIET)
find_package(Ceres QUIET)
find_package(ade QUIET)
find_package(VTK QUIET)
find_package(GDCM QUIET)
find_package(OpenJPEG QUIET)" OPENCV_MODULES "${OPENCV_MODULES}")
find_package(GDCM QUIET)" OPENCV_MODULES "${OPENCV_MODULES}")
file(WRITE ${CURRENT_PACKAGES_DIR}/share/opencv/OpenCVModules.cmake "${OPENCV_MODULES}")

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
Expand Down

0 comments on commit 8582cb7

Please sign in to comment.