From: Renaud-K Date: Mon, 10 May 2021 23:41:29 +0000 (-0700) Subject: Enable export of FIR includes into the install tree X-Git-Tag: llvmorg-14-init~7092 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e11616a071d07d0f3cdae1140b5c8685eb564a2;p=platform%2Fupstream%2Fllvm.git Enable export of FIR includes into the install tree https://reviews.llvm.org/D102040 --- 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()