diff --git a/modules/java/CMakeLists.txt b/modules/java/CMakeLists.txt index 0528fa486..86c25f65a 100644 --- a/modules/java/CMakeLists.txt +++ b/modules/java/CMakeLists.txt @@ -369,6 +369,7 @@ set_target_properties(${the_module} PROPERTIES if(ANDROID) ocv_target_link_libraries(${the_module} jnigraphics) # for Mat <=> Bitmap converters + ocv_target_link_libraries(${the_module} LINK_INTERFACE_LIBRARIES ${OPENCV_LINKER_LIBS} jnigraphics) # force strip library after the build command # because samples and tests will make a copy of the library before install