[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`.
This commit is contained in:
parent
847c787269
commit
03f260fd83
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue