Skip to content

Commit 1e11616

Browse files
committed
Enable export of FIR includes into the install tree
https://reviews.llvm.org/D102040
1 parent c057779 commit 1e11616

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

flang/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ else()
205205
include_directories(SYSTEM ${MLIR_TABLEGEN_OUTPUT_DIR})
206206
endif()
207207
set(FLANG_INTRINSIC_MODULES_DIR ${CMAKE_BINARY_DIR}/include/flang)
208+
set(FLANG_INCLUDE_DIR ${FLANG_BINARY_DIR}/include)
208209

209210
if(FLANG_BUILD_NEW_DRIVER)
210211
# TODO: Remove when libclangDriver is lifted out of Clang
@@ -447,4 +448,11 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
447448
PATTERN "config.h" EXCLUDE
448449
PATTERN ".git" EXCLUDE
449450
PATTERN "CMakeFiles" EXCLUDE)
451+
452+
install(DIRECTORY ${FLANG_INCLUDE_DIR}/flang
453+
DESTINATION include
454+
COMPONENT flang-headers
455+
FILES_MATCHING
456+
PATTERN "*.inc"
457+
)
450458
endif()

0 commit comments

Comments
 (0)