diff options
| author | JackBoosY <47264268+JackBoosY@users.noreply.github.com> | 2019-06-18 01:54:44 +0800 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2019-06-17 10:54:44 -0700 |
| commit | f63ddfec5e412ce77961daaae751ae829b34f3c3 (patch) | |
| tree | 12039dfdd7ce9d7a4177b4c0192253fdbd7cd0bf /ports/opencv/0006-fix-missing-openjp2.patch | |
| parent | a861441498eb6aeb7b69f7fffc4a721fdeaa43b5 (diff) | |
| download | vcpkg-f63ddfec5e412ce77961daaae751ae829b34f3c3.tar.gz vcpkg-f63ddfec5e412ce77961daaae751ae829b34f3c3.zip | |
[opencv]Fix build error with feature gdcm: cannot find openjp2. (#6901)
Diffstat (limited to 'ports/opencv/0006-fix-missing-openjp2.patch')
| -rw-r--r-- | ports/opencv/0006-fix-missing-openjp2.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ports/opencv/0006-fix-missing-openjp2.patch b/ports/opencv/0006-fix-missing-openjp2.patch new file mode 100644 index 000000000..c0afb9952 --- /dev/null +++ b/ports/opencv/0006-fix-missing-openjp2.patch @@ -0,0 +1,16 @@ +diff --git a/modules/imgcodecs/CMakeLists.txt b/modules/imgcodecs/CMakeLists.txt
+index 434278c..0d8f4d8 100644
+--- a/modules/imgcodecs/CMakeLists.txt
++++ b/modules/imgcodecs/CMakeLists.txt
+@@ -36,6 +36,11 @@ if(HAVE_PNG)
+ endif()
+
+ if(HAVE_GDCM)
++ if (CMAKE_BUILD_TYPE STREQUAL "Release")
++ link_directories("${CURRENT_INSTALLED_DIR}/lib")
++ else()
++ link_directories("${CURRENT_INSTALLED_DIR}/debug/lib")
++ endif()
+ ocv_include_directories(${GDCM_INCLUDE_DIRS})
+ list(APPEND GRFMT_LIBS ${GDCM_LIBRARIES})
+ endif()
|
