build: fix opencv_world with CUDA

This commit is contained in:
Alexander Alekhin
2016-01-14 16:59:33 +03:00
parent c3ad8af42a
commit c8ff7a4867
4 changed files with 9 additions and 19 deletions

View File

@@ -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()