[OpenMP] CUDA plugin: add include directory for libelf

Allow the user to manually specify where libelf is installed.

Differential Revision: https://reviews.llvm.org/D31207

llvm-svn: 298515
This commit is contained in:
George Rokos 2017-03-22 16:41:46 +00:00
parent d8350cf3fc
commit f3fe2dd235
1 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@ if(LIBOMPTARGET_DEP_LIBELF_FOUND)
endif()
include_directories(${LIBOMPTARGET_DEP_CUDA_INCLUDE_DIRS})
include_directories(${LIBOMPTARGET_DEP_LIBELF_INCLUDE_DIRS})
add_library(omptarget.rtl.cuda SHARED src/rtl.cpp)
@ -46,4 +47,4 @@ if(LIBOMPTARGET_DEP_LIBELF_FOUND)
endif()
else(LIBOMPTARGET_DEP_LIBELF_FOUND)
libomptarget_say("Not building CUDA offloading plugin: libelf dependency not found.")
endif(LIBOMPTARGET_DEP_LIBELF_FOUND)
endif(LIBOMPTARGET_DEP_LIBELF_FOUND)