fixed gpu module build system (in case when WITH_CUDA is set, but CUDA Toolkit is not found)

This commit is contained in:
Anatoly Baksheev 2010-10-06 12:45:31 +00:00
parent 5051c635b1
commit 7a3b0785d7

View File

@ -100,7 +100,11 @@ set_target_properties(${the_target} PROPERTIES
)
# Add the required libraries for linking:
target_link_libraries(${the_target} ${OPENCV_LINKER_LIBS} ${IPP_LIBS} ${DEPS} ${CUDA_LIBRARIES} ${CUDA_NPP_LIBRARIES})
target_link_libraries(${the_target} ${OPENCV_LINKER_LIBS} ${IPP_LIBS} ${DEPS})
if (HAVE_CUDA)
target_link_libraries(${the_target} ${CUDA_LIBRARIES} ${CUDA_NPP_LIBRARIES})
endif()
if(MSVC)
if(CMAKE_CROSSCOMPILING)