Files
opencv-mobile/opencv-3.4.20-link-openmp.patch
nihui fc1635bba6 update 3.4.20 and 4.8.0 and some ci fix and highgui fix (#53)
* update 3.4.20 patch

* update 4.8.0 patch

* update toolchain and ci

* split ios simulator

* fix wasm simd build

* enable cxx11 for opencv2

* workaround for macos build

* workaround for ios build

* do not convert RGB/BGR inplace on imencode/imwrite

* Update stb_image.h

* enable stbi neon

* Update highgui.cpp

* mac catalyst

* add test project

* opencv2 link openmp

* opencv 2.4.13.7 on newer msvc

* enable c++11 test

* test all packages
2023-08-14 15:41:28 +08:00

15 lines
599 B
Diff

diff -Nuarp opencv-3.4.20.orig/modules/core/CMakeLists.txt opencv-3.4.20/modules/core/CMakeLists.txt
--- opencv-3.4.20.orig/modules/core/CMakeLists.txt 2023-06-27 19:29:13.000000000 +0800
+++ opencv-3.4.20/modules/core/CMakeLists.txt 2023-08-13 19:39:56.659037366 +0800
@@ -31,6 +31,10 @@ if(HAVE_TBB)
list(APPEND extra_libs tbb)
endif()
+if(HAVE_OPENMP AND DEFINED OpenMP_CXX_LIBRARIES AND OpenMP_CXX_LIBRARIES)
+ list(APPEND extra_libs ${OpenMP_CXX_LIBRARIES})
+endif()
+
if(DEFINED WINRT AND NOT DEFINED ENABLE_WINRT_MODE_NATIVE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /ZW")
endif()