build: fix opencv_world with CUDA
This commit is contained in:
@@ -17,6 +17,6 @@ ocv_set_module_sources(HEADERS ${lib_hdrs} SOURCES ${lib_srcs})
|
||||
|
||||
ocv_create_module()
|
||||
|
||||
if(BUILD_TESTS)
|
||||
if(BUILD_TESTS AND NOT BUILD_opencv_world)
|
||||
add_subdirectory(test)
|
||||
endif()
|
||||
|
@@ -20,13 +20,13 @@ if(NOT OPENCV_INITIAL_PASS)
|
||||
foreach(m ${OPENCV_MODULES_BUILD})
|
||||
if(OPENCV_MODULE_${m}_IS_PART_OF_WORLD)
|
||||
message(STATUS " module ${m}...")
|
||||
set(CMAKE_CURRENT_SOURCE_DIR ${OPENCV_MODULE_${m}_LOCATION})
|
||||
set(CMAKE_CURRENT_SOURCE_DIR "${OPENCV_MODULE_${m}_LOCATION}")
|
||||
#add_subdirectory("${OPENCV_MODULE_${m}_LOCATION}" ${CMAKE_CURRENT_BINARY_DIR}/${m})
|
||||
include_one_module(${m})
|
||||
endif()
|
||||
endforeach()
|
||||
message(STATUS "Processing WORLD modules... DONE")
|
||||
set(CMAKE_CURRENT_SOURCE_DIR OPENCV_MODULE_${opencv_world}_LOCATION)
|
||||
set(CMAKE_CURRENT_SOURCE_DIR "${OPENCV_MODULE_opencv_world_LOCATION}")
|
||||
endif()
|
||||
|
||||
ocv_add_module(world opencv_core)
|
||||
|
Reference in New Issue
Block a user