[flang-commits] [flang] 1e11616 - Enable export of FIR includes into the install tree

via flang-commits flang-commits at lists.llvm.org
Mon May 10 18:07:06 PDT 2021


Author: Renaud-K
Date: 2021-05-10T18:05:12-07:00
New Revision: 1e11616a071d07d0f3cdae1140b5c8685eb564a2

URL: https://github.com/llvm/llvm-project/commit/1e11616a071d07d0f3cdae1140b5c8685eb564a2
DIFF: https://github.com/llvm/llvm-project/commit/1e11616a071d07d0f3cdae1140b5c8685eb564a2.diff

LOG: Enable export of FIR includes into the install tree
https://reviews.llvm.org/D102040

Added: 
    

Modified: 
    flang/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/flang/CMakeLists.txt b/flang/CMakeLists.txt
index 812a794fe3e74..2ef299349be7e 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()


        


More information about the flang-commits mailing list