[flang-commits] [PATCH] D102040: [flang] Enable export of FIR includes into the install tree

Renaud Kauffmann via Phabricator via flang-commits flang-commits at lists.llvm.org
Thu May 6 19:12:30 PDT 2021


Renaud-K created this revision.
Renaud-K added reviewers: schweitz, awarzynski, PeteSteinfeld.
Renaud-K added a project: Flang.
Herald added subscribers: rriddle, jdoerfert, mgorny.
Herald added a reviewer: sscalpone.
Renaud-K requested review of this revision.
Herald added subscribers: llvm-commits, stephenneuendorffer.
Herald added a project: LLVM.

This makes it possible to build out-of-tree just pointing to an install tree. 
It is consistent with MLIR


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102040

Files:
  flang/CMakeLists.txt


Index: flang/CMakeLists.txt
===================================================================
--- flang/CMakeLists.txt
+++ flang/CMakeLists.txt
@@ -447,4 +447,10 @@
     PATTERN "config.h" EXCLUDE
     PATTERN ".git"     EXCLUDE
     PATTERN "CMakeFiles" EXCLUDE)
+
+if (NOT LLVM_ENABLE_IDE)
+    add_llvm_install_targets(install-flang-headers
+                             DEPENDS flang-headers
+                             COMPONENT flang-headers)
+  endif()
 endif()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102040.343553.patch
Type: text/x-patch
Size: 473 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20210507/5dd5e429/attachment.bin>


More information about the flang-commits mailing list