mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
use directory-based include_directories command if we build with CUDA
This commit is contained in:
@@ -94,7 +94,7 @@ function(ocv_target_include_directories target)
|
||||
list(APPEND __params "${dir}")
|
||||
endif()
|
||||
endforeach()
|
||||
if(CMAKE_VERSION VERSION_LESS 2.8.11)
|
||||
if(HAVE_CUDA OR CMAKE_VERSION VERSION_LESS 2.8.11)
|
||||
include_directories(${__params})
|
||||
else()
|
||||
if(TARGET ${target})
|
||||
|
||||
Reference in New Issue
Block a user