mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
fixes #5018: fix framework links in opencv.pc (MacOS)
This commit is contained in:
parent
5cdf0e3e89
commit
f0c14888d5
@ -21,6 +21,8 @@ macro(fix_prefix lst isown)
|
||||
endif()
|
||||
if(item MATCHES "^-l")
|
||||
list(APPEND _lst "${item}")
|
||||
elseif(item MATCHES "^-framework") # MacOS framework (assume single entry "-framework OpenCL")
|
||||
list(APPEND _lst "${item}")
|
||||
elseif(item MATCHES "[\\/]")
|
||||
get_filename_component(libdir "${item}" PATH)
|
||||
get_filename_component(libname "${item}" NAME_WE)
|
||||
|
Loading…
Reference in New Issue
Block a user