mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 14:13:15 +08:00
Merge pull request #4095 from alalek:hal_unresolved_symbols
This commit is contained in:
commit
7bfd070864
@ -176,15 +176,11 @@ macro(ocv_add_module _name)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# add HAL as dependency
|
||||
if(NOT "${the_module}" STREQUAL "opencv_hal")
|
||||
ocv_add_dependencies(${the_module} opencv_hal)
|
||||
endif()
|
||||
|
||||
# add self to the world dependencies
|
||||
if((NOT DEFINED OPENCV_MODULE_IS_PART_OF_WORLD
|
||||
AND NOT OPENCV_MODULE_${the_module}_CLASS STREQUAL "BINDINGS"
|
||||
AND NOT OPENCV_PROCESSING_EXTRA_MODULES)
|
||||
AND NOT OPENCV_PROCESSING_EXTRA_MODULES
|
||||
AND (NOT BUILD_SHARED_LIBS OR NOT "x${OPENCV_MODULE_TYPE}" STREQUAL "xSTATIC"))
|
||||
OR OPENCV_MODULE_IS_PART_OF_WORLD
|
||||
)
|
||||
set(OPENCV_MODULE_${the_module}_IS_PART_OF_WORLD ON CACHE INTERNAL "")
|
||||
|
@ -1,7 +1,9 @@
|
||||
set(the_description "The Core Functionality")
|
||||
ocv_add_module(core PRIVATE_REQUIRED ${ZLIB_LIBRARIES} "${OPENCL_LIBRARIES}"
|
||||
ocv_add_module(core
|
||||
opencv_hal
|
||||
PRIVATE_REQUIRED ${ZLIB_LIBRARIES} "${OPENCL_LIBRARIES}"
|
||||
OPTIONAL opencv_cudev
|
||||
WRAP java python)
|
||||
WRAP java python)
|
||||
|
||||
set(extra_libs "")
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
set(the_description "The Hardware Acceleration Layer (HAL) module")
|
||||
|
||||
set(OPENCV_MODULE_TYPE STATIC)
|
||||
# set(OPENCV_MODULE_IS_PART_OF_WORLD FALSE)
|
||||
|
||||
if(UNIX)
|
||||
if(CMAKE_COMPILER_IS_GNUCXX OR CV_ICC)
|
||||
|
@ -35,8 +35,10 @@ set(headers_list "HEADERS")
|
||||
set(sources_list "SOURCES")
|
||||
set(link_deps "")
|
||||
foreach(m ${OPENCV_MODULE_${the_module}_DEPS})
|
||||
set(headers_list "${headers_list};${OPENCV_MODULE_${m}_HEADERS}")
|
||||
set(sources_list "${sources_list};${OPENCV_MODULE_${m}_SOURCES}")
|
||||
if(OPENCV_MODULE_${m}_IS_PART_OF_WORLD)
|
||||
set(headers_list "${headers_list};${OPENCV_MODULE_${m}_HEADERS}")
|
||||
set(sources_list "${sources_list};${OPENCV_MODULE_${m}_SOURCES}")
|
||||
endif()
|
||||
set(link_deps "${link_deps};${OPENCV_MODULE_${m}_LINK_DEPS}")
|
||||
endforeach()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user