mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 20:50:25 +08:00
use directory-based include_directories command if we build with CUDA
This commit is contained in:
parent
0825120f6a
commit
f5d9359da8
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user