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

Commit

Permalink
Fix Accelerate.framework full path
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslo committed Apr 2, 2019
1 parent a565cb6 commit 8800fcc
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
3 changes: 3 additions & 0 deletions cmake/templates/OpenCVConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -373,3 +373,6 @@ if("@Qt5OpenGL_FOUND@")
endif()
# AWP: Qt5 dependencies -- end

if(APPLE)
find_package(accelerate REQUIRED)
endif()
9 changes: 8 additions & 1 deletion modules/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,16 @@ endif()

ocv_create_module(${extra_libs})

if(HUNTER_ENABLED AND APPLE)
find_package(accelerate REQUIRED)
set(__lapack_libraries accelerate::accelerate)
else()
set(__lapack_libraries ${LAPACK_LIBRARIES})
endif()

ocv_target_link_libraries(${the_module} LINK_PRIVATE
"${ZLIB_LIBRARIES}" "${OPENCL_LIBRARIES}" "${VA_LIBRARIES}"
"${LAPACK_LIBRARIES}" "${CPUFEATURES_LIBRARIES}" "${HALIDE_LIBRARIES}"
"${__lapack_libraries}" "${CPUFEATURES_LIBRARIES}" "${HALIDE_LIBRARIES}"
"${ITT_LIBRARIES}"
"${OPENCV_HAL_LINKER_LIBS}"
)
Expand Down
10 changes: 9 additions & 1 deletion modules/dnn/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,15 @@ endif()

set(include_dirs ${fw_inc})
set(sources_options "")
set(libs libprotobuf ${LAPACK_LIBRARIES})

if(HUNTER_ENABLED AND APPLE)
find_package(accelerate REQUIRED)
set(__lapack_libraries accelerate::accelerate)
else()
set(__lapack_libraries ${LAPACK_LIBRARIES})
endif()

set(libs libprotobuf ${__lapack_libraries})
if(OPENCV_DNN_OPENCL AND HAVE_OPENCL)
list(APPEND include_dirs ${OPENCL_INCLUDE_DIRS})
else()
Expand Down

0 comments on commit 8800fcc

Please sign in to comment.