mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 14:36:36 +08:00
cmake: fix JNI configuration problem for Android samples
Some CMake 3.x (2.8.12.2 is fine) provides broken build configurations with following build error message: ld: fatal error: -soname: must take a non-empty argument Linker command line sample contains this: "-shared -Wl,-soname, -o"
This commit is contained in:
parent
aa861520f6
commit
c6be51eecd
@ -290,7 +290,7 @@ macro(add_android_project target path)
|
|||||||
set(android_proj_NATIVE_DEPS ${android_proj_NATIVE_DEPS} android)
|
set(android_proj_NATIVE_DEPS ${android_proj_NATIVE_DEPS} android)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(${JNI_LIB_NAME} MODULE ${android_proj_jni_files})
|
add_library(${JNI_LIB_NAME} SHARED ${android_proj_jni_files})
|
||||||
target_link_libraries(${JNI_LIB_NAME} ${OPENCV_LINKER_LIBS} ${android_proj_NATIVE_DEPS})
|
target_link_libraries(${JNI_LIB_NAME} ${OPENCV_LINKER_LIBS} ${android_proj_NATIVE_DEPS})
|
||||||
|
|
||||||
set_target_properties(${JNI_LIB_NAME} PROPERTIES
|
set_target_properties(${JNI_LIB_NAME} PROPERTIES
|
||||||
|
Loading…
Reference in New Issue
Block a user