summaryrefslogtreecommitdiffstats
path: root/openmp
diff options
context:
space:
mode:
authorGeorge Rokos <grokos@us.ibm.com>2017-03-22 16:41:46 +0000
committerGeorge Rokos <grokos@us.ibm.com>2017-03-22 16:41:46 +0000
commitf3fe2dd23524202c22f05b9bddf5b2ecdbbf8d45 (patch)
treec5fd25ec0ad6b8a4083aef99005c54634f35f297 /openmp
parentd8350cf3fce4bb582e99634947f8fc4cbb7cb105 (diff)
downloadbcm5719-llvm-f3fe2dd23524202c22f05b9bddf5b2ecdbbf8d45.tar.gz
bcm5719-llvm-f3fe2dd23524202c22f05b9bddf5b2ecdbbf8d45.zip
[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
Diffstat (limited to 'openmp')
-rw-r--r--openmp/libomptarget/plugins/cuda/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/openmp/libomptarget/plugins/cuda/CMakeLists.txt b/openmp/libomptarget/plugins/cuda/CMakeLists.txt
index 51d4d42ead3..a84083c0e3f 100644
--- a/openmp/libomptarget/plugins/cuda/CMakeLists.txt
+++ b/openmp/libomptarget/plugins/cuda/CMakeLists.txt
@@ -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) \ No newline at end of file
+endif(LIBOMPTARGET_DEP_LIBELF_FOUND)
OpenPOWER on IntegriCloud