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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user