Skip to content

Commit

Permalink
[flang] Add install target to install flang headers (#78151)
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
tblah committed Jan 16, 2024
1 parent 847c787 commit 03f260f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flang/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,9 @@ if (FLANG_LIBS)
endif()

if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
add_llvm_install_targets(install-flang-headers
COMPONENT flang-headers)

install(DIRECTORY include/flang
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
COMPONENT flang-headers
Expand Down

0 comments on commit 03f260f

Please sign in to comment.