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

cmake world: allow to build python bindings

This commit is contained in:
Alexander Alekhin
2017-01-18 17:14:55 +03:00
parent 36b34465a4
commit a5d16f09e6
2 changed files with 23 additions and 10 deletions
+5 -2
View File
@@ -233,7 +233,7 @@ macro(ocv_add_module _name)
endmacro()
# excludes module from current configuration
macro(ocv_module_disable module)
macro(ocv_module_disable_ module)
set(__modname ${module})
if(NOT __modname MATCHES "^opencv_")
set(__modname opencv_${module})
@@ -246,9 +246,12 @@ macro(ocv_module_disable module)
# touch variable controlling build of the module to suppress "unused variable" CMake warning
endif()
unset(__modname)
return() # leave the current folder
endmacro()
macro(ocv_module_disable module)
ocv_module_disable_(${module})
return() # leave the current folder
endmacro()
# collect modules from specified directories
# NB: must be called only once!