forked from OSchip/llvm-project
[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:
parent
d8350cf3fc
commit
f3fe2dd235
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue