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

pull/13383/head
Anatoly Baksheev 14 years ago
parent 5051c635b1
commit 7a3b0785d7
  1. 6
      modules/gpu/CMakeLists.txt

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

Loading…
Cancel
Save