mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Do not build protobuf without dnn (#10689)
* Do not build protobuf if dnn is disabled * Added BUILD_LIST cmake option to the cache * Moved protobuf to the top level * Fixed static build * Fixed world build * fixup! Fixed world build
This commit is contained in:
committed by
Vadim Pisarevsky
parent
36222c9eed
commit
e56d6054aa
@@ -653,7 +653,14 @@ macro(ocv_module_include_directories)
|
||||
"${OPENCV_MODULE_${the_module}_LOCATION}/src"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}" # for precompiled headers
|
||||
)
|
||||
ocv_target_include_modules(${the_module} ${OPENCV_MODULE_${the_module}_DEPS} ${ARGN})
|
||||
foreach(arg ${ARGN})
|
||||
if(IS_ABSOLUTE "${arg}")
|
||||
list(APPEND incs "${arg}")
|
||||
else()
|
||||
list(APPEND incs "${OPENCV_MODULE_${the_module}_LOCATION}/${arg}")
|
||||
endif()
|
||||
endforeach()
|
||||
ocv_target_include_modules(${the_module} ${OPENCV_MODULE_${the_module}_DEPS} ${incs})
|
||||
endmacro()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user