From f3fe2dd23524202c22f05b9bddf5b2ecdbbf8d45 Mon Sep 17 00:00:00 2001 From: George Rokos Date: Wed, 22 Mar 2017 16:41:46 +0000 Subject: [PATCH] [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 --- openmp/libomptarget/plugins/cuda/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openmp/libomptarget/plugins/cuda/CMakeLists.txt b/openmp/libomptarget/plugins/cuda/CMakeLists.txt index 51d4d42ead38..a84083c0e3fc 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)