Skip to content
This repository was archived by the owner on Mar 22, 2020. It is now read-only.

Commit 8800fcc

Browse files
committed
Fix Accelerate.framework full path
1 parent a565cb6 commit 8800fcc

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

cmake/templates/OpenCVConfig.cmake.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,3 +373,6 @@ if("@Qt5OpenGL_FOUND@")
373373
endif()
374374
# AWP: Qt5 dependencies -- end
375375

376+
if(APPLE)
377+
find_package(accelerate REQUIRED)
378+
endif()

modules/core/CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,16 @@ endif()
7070

7171
ocv_create_module(${extra_libs})
7272

73+
if(HUNTER_ENABLED AND APPLE)
74+
find_package(accelerate REQUIRED)
75+
set(__lapack_libraries accelerate::accelerate)
76+
else()
77+
set(__lapack_libraries ${LAPACK_LIBRARIES})
78+
endif()
79+
7380
ocv_target_link_libraries(${the_module} LINK_PRIVATE
7481
"${ZLIB_LIBRARIES}" "${OPENCL_LIBRARIES}" "${VA_LIBRARIES}"
75-
"${LAPACK_LIBRARIES}" "${CPUFEATURES_LIBRARIES}" "${HALIDE_LIBRARIES}"
82+
"${__lapack_libraries}" "${CPUFEATURES_LIBRARIES}" "${HALIDE_LIBRARIES}"
7683
"${ITT_LIBRARIES}"
7784
"${OPENCV_HAL_LINKER_LIBS}"
7885
)

modules/dnn/CMakeLists.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,15 @@ endif()
7878

7979
set(include_dirs ${fw_inc})
8080
set(sources_options "")
81-
set(libs libprotobuf ${LAPACK_LIBRARIES})
81+
82+
if(HUNTER_ENABLED AND APPLE)
83+
find_package(accelerate REQUIRED)
84+
set(__lapack_libraries accelerate::accelerate)
85+
else()
86+
set(__lapack_libraries ${LAPACK_LIBRARIES})
87+
endif()
88+
89+
set(libs libprotobuf ${__lapack_libraries})
8290
if(OPENCV_DNN_OPENCL AND HAVE_OPENCL)
8391
list(APPEND include_dirs ${OPENCL_INCLUDE_DIRS})
8492
else()

0 commit comments

Comments
 (0)