diff --git a/openmp/libomptarget/src/CMakeLists.txt b/openmp/libomptarget/src/CMakeLists.txt --- a/openmp/libomptarget/src/CMakeLists.txt +++ b/openmp/libomptarget/src/CMakeLists.txt @@ -21,6 +21,8 @@ ${CMAKE_CURRENT_SOURCE_DIR}/omptarget.cpp ) +include_directories(${LIBOMPTARGET_LLVM_MAIN_INCLUDE_DIR}) + # Build libomptarget library with libdl dependency. Add LLVMSupport # dependency if building in-tree with profiling enabled. if(OPENMP_STANDALONE_BUILD OR (NOT OPENMP_ENABLE_LIBOMPTARGET_PROFILING))