mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 21:20:18 +08:00
Merge pull request #753 from taka-no-me:fix_osx_fat_java
This commit is contained in:
commit
e22983ddb6
@ -281,7 +281,14 @@ if(BUILD_FAT_JAVA_LIB)
|
|||||||
if(__extradeps)
|
if(__extradeps)
|
||||||
list(REMOVE_ITEM __deps ${__extradeps})
|
list(REMOVE_ITEM __deps ${__extradeps})
|
||||||
endif()
|
endif()
|
||||||
target_link_libraries(${the_module} -Wl,-whole-archive ${__deps} -Wl,-no-whole-archive ${__extradeps} ${OPENCV_LINKER_LIBS})
|
if(APPLE)
|
||||||
|
foreach(_dep ${__deps})
|
||||||
|
target_link_libraries(${the_module} -Wl,-force_load "${_dep}")
|
||||||
|
endforeach()
|
||||||
|
else()
|
||||||
|
target_link_libraries(${the_module} -Wl,-whole-archive ${__deps} -Wl,-no-whole-archive)
|
||||||
|
endif()
|
||||||
|
target_link_libraries(${the_module} ${__extradeps} ${OPENCV_LINKER_LIBS})
|
||||||
else()
|
else()
|
||||||
target_link_libraries(${the_module} ${OPENCV_MODULE_${the_module}_DEPS} ${OPENCV_LINKER_LIBS})
|
target_link_libraries(${the_module} ${OPENCV_MODULE_${the_module}_DEPS} ${OPENCV_LINKER_LIBS})
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user