mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
core(parallel): fix JS build, fix OpenMP version dump
This commit is contained in:
parent
20d5d1c4c2
commit
599d64a405
@ -5,6 +5,7 @@
|
||||
#ifndef OPENCV_CORE_PARALLEL_BACKEND_HPP
|
||||
#define OPENCV_CORE_PARALLEL_BACKEND_HPP
|
||||
|
||||
#include "opencv2/core/cvdef.h"
|
||||
#include <memory>
|
||||
|
||||
namespace cv { namespace parallel {
|
||||
|
@ -8,5 +8,5 @@ include("${OpenCV_SOURCE_DIR}/cmake/OpenCVPluginStandalone.cmake")
|
||||
set(WITH_OPENMP ON)
|
||||
include("${OpenCV_SOURCE_DIR}/modules/core/cmake/parallel/init.cmake")
|
||||
|
||||
message(STATUS "OpenMP: ${OPENMP_VERSION}")
|
||||
message(STATUS "OpenMP: ${OpenMP_CXX_VERSION}")
|
||||
ocv_create_plugin(core "opencv_core_parallel_openmp" "ocv.3rdparty.openmp" "OPENMP" "src/parallel/parallel_openmp.cpp")
|
||||
|
@ -279,6 +279,7 @@ std::shared_ptr<IParallelBackendFactory> createPluginParallelBackendFactory(cons
|
||||
#if OPENCV_HAVE_FILESYSTEM_SUPPORT && defined(PARALLEL_ENABLE_PLUGINS)
|
||||
return std::make_shared<impl::PluginParallelBackendFactory>(baseName);
|
||||
#else
|
||||
CV_UNUSED(baseName);
|
||||
return std::shared_ptr<IParallelBackendFactory>();
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user