fixed gpu module build system (in case when WITH_CUDA is set, but CUDA Toolkit is not found)
This commit is contained in:
parent
5051c635b1
commit
7a3b0785d7
@ -100,7 +100,11 @@ set_target_properties(${the_target} PROPERTIES
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Add the required libraries for linking:
|
# 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(MSVC)
|
||||||
if(CMAKE_CROSSCOMPILING)
|
if(CMAKE_CROSSCOMPILING)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user