Index: libomptarget/plugins/cuda/CMakeLists.txt =================================================================== --- libomptarget/plugins/cuda/CMakeLists.txt +++ libomptarget/plugins/cuda/CMakeLists.txt @@ -24,6 +24,7 @@ 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 @@ 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)