Skip to content

Commit 03f260f

Browse files
authored
[flang] Add install target to install flang headers (#78151)
This makes it more convenient to install flang without using the general `ninja install` to install everything. To install flang-new and associated things one needs `ninja install-flang-new install-flang-libraries install-flang-headers`.
1 parent 847c787 commit 03f260f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

flang/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,9 @@ if (FLANG_LIBS)
474474
endif()
475475

476476
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
477+
add_llvm_install_targets(install-flang-headers
478+
COMPONENT flang-headers)
479+
477480
install(DIRECTORY include/flang
478481
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
479482
COMPONENT flang-headers

0 commit comments

Comments
 (0)