From 1e11616a071d07d0f3cdae1140b5c8685eb564a2 Mon Sep 17 00:00:00 2001 From: Renaud-K Date: Mon, 10 May 2021 16:41:29 -0700 Subject: [PATCH] Enable export of FIR includes into the install tree https://reviews.llvm.org/D102040 --- flang/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/flang/CMakeLists.txt b/flang/CMakeLists.txt index 812a794..2ef2993 100644 --- a/flang/CMakeLists.txt +++ b/flang/CMakeLists.txt @@ -205,6 +205,7 @@ else() include_directories(SYSTEM ${MLIR_TABLEGEN_OUTPUT_DIR}) endif() set(FLANG_INTRINSIC_MODULES_DIR ${CMAKE_BINARY_DIR}/include/flang) +set(FLANG_INCLUDE_DIR ${FLANG_BINARY_DIR}/include) if(FLANG_BUILD_NEW_DRIVER) # TODO: Remove when libclangDriver is lifted out of Clang @@ -447,4 +448,11 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY) PATTERN "config.h" EXCLUDE PATTERN ".git" EXCLUDE PATTERN "CMakeFiles" EXCLUDE) + + install(DIRECTORY ${FLANG_INCLUDE_DIR}/flang + DESTINATION include + COMPONENT flang-headers + FILES_MATCHING + PATTERN "*.inc" + ) endif() -- 2.7.4