[fix] Fix build for CUDA when installed into /usr/local/cuda
@@ -24,6 +24,8 @@ add_library(tornado-cuda SHARED
#Support for CUDA Integration
FIND_PACKAGE(CUDA)
if(CUDA_FOUND)
+ include_directories(${CUDA_INCLUDE_DIRS})
+ link_directories(tornado-cuda ${CUDA_TOOLKIT_ROOT_DIR})
set_property(TARGET tornado-cuda PROPERTY C_STANDARD 99)
set_target_properties(tornado-cuda PROPERTIES LINKER_LANGUAGE C)
target_link_libraries(tornado-cuda ${JNI_LIB_DIRS} -lcuda)
