1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

cmake: allow BUILD_FAT_JAVA_LIB for non-Android targets too

This commit is contained in:
Alexander Alekhin
2018-01-07 18:16:38 +00:00
parent ee35263e48
commit f3dde79ed6
4 changed files with 14 additions and 5 deletions
+4 -1
View File
@@ -886,7 +886,10 @@ macro(_ocv_create_module)
DEFINE_SYMBOL CVAPI_EXPORTS
)
if(ANDROID AND BUILD_FAT_JAVA_LIB)
if(BUILD_FAT_JAVA_LIB) # force exports from static modules too
if(BUILD_SHARED_LIBS)
message(FATAL_ERROR "Assertion failed: BUILD_SHARED_LIBS=OFF must be off if BUILD_FAT_JAVA_LIB=ON")
endif()
target_compile_definitions(${the_module} PRIVATE CVAPI_EXPORTS)
endif()