Commit 5ac1d832 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #5797 from alalek:fix_5018

parents e4fea5ab f0c14888
...@@ -21,6 +21,8 @@ macro(fix_prefix lst isown) ...@@ -21,6 +21,8 @@ macro(fix_prefix lst isown)
endif() endif()
if(item MATCHES "^-l") if(item MATCHES "^-l")
list(APPEND _lst "${item}") list(APPEND _lst "${item}")
elseif(item MATCHES "^-framework") # MacOS framework (assume single entry "-framework OpenCL")
list(APPEND _lst "${item}")
elseif(item MATCHES "[\\/]") elseif(item MATCHES "[\\/]")
get_filename_component(libdir "${item}" PATH) get_filename_component(libdir "${item}" PATH)
get_filename_component(libname "${item}" NAME_WE) get_filename_component(libname "${item}" NAME_WE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment