Don't build CUDA modules stubs by default (use -DBUILD_CUDA_STUBS=ON
if need them)
This commit is contained in:
parent
45f21e4f12
commit
724f5e7f19
@ -175,6 +175,7 @@ OCV_OPTION(BUILD_WITH_STATIC_CRT "Enables use of staticaly linked CRT for sta
|
||||
OCV_OPTION(BUILD_FAT_JAVA_LIB "Create fat java wrapper containing the whole OpenCV library" ON IF NOT BUILD_SHARED_LIBS AND CMAKE_COMPILER_IS_GNUCXX )
|
||||
OCV_OPTION(BUILD_ANDROID_SERVICE "Build OpenCV Manager for Google Play" OFF IF ANDROID AND ANDROID_SOURCE_TREE )
|
||||
OCV_OPTION(BUILD_ANDROID_PACKAGE "Build platform-specific package for Google Play" OFF IF ANDROID )
|
||||
OCV_OPTION(BUILD_CUDA_STUBS "Build CUDA modules stubs when no CUDA SDK" OFF IF (NOT IOS) )
|
||||
|
||||
# 3rd party libs
|
||||
OCV_OPTION(BUILD_ZLIB "Build zlib from source" WIN32 OR APPLE )
|
||||
|
@ -1,4 +1,4 @@
|
||||
if(IOS)
|
||||
if(IOS OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
|
||||
ocv_module_disable(cuda)
|
||||
endif()
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
if(IOS)
|
||||
if(IOS OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
|
||||
ocv_module_disable(cudaarithm)
|
||||
endif()
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
if(IOS)
|
||||
if(IOS OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
|
||||
ocv_module_disable(cudabgsegm)
|
||||
endif()
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
if(IOS OR APPLE)
|
||||
if(IOS OR APPLE OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
|
||||
ocv_module_disable(cudacodec)
|
||||
endif()
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
if(IOS)
|
||||
if(IOS OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
|
||||
ocv_module_disable(cudafeatures2d)
|
||||
endif()
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
if(IOS)
|
||||
if(IOS OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
|
||||
ocv_module_disable(cudafilters)
|
||||
endif()
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
if(IOS)
|
||||
if(IOS OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
|
||||
ocv_module_disable(cudaimgproc)
|
||||
endif()
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
if(IOS)
|
||||
if(IOS OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
|
||||
ocv_module_disable(cudaoptflow)
|
||||
endif()
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
if(IOS)
|
||||
if(IOS OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
|
||||
ocv_module_disable(cudastereo)
|
||||
endif()
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
if(IOS)
|
||||
if(IOS OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
|
||||
ocv_module_disable(cudawarping)
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user