use directory-based include_directories command if we build with CUDA

This commit is contained in:
Vladislav Vinogradov 2014-08-13 18:08:08 +04:00
parent 0825120f6a
commit f5d9359da8

View File

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