[flang-commits] [flang] [flang] Add install target to install flang headers (PR #78151)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Mon Jan 15 03:50:59 PST 2024
https://github.com/tblah created https://github.com/llvm/llvm-project/pull/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`.
>From 1b319ae95f7dc1da364a3a6dce467c5aed664492 Mon Sep 17 00:00:00 2001
From: Tom Eccles <tom.eccles at arm.com>
Date: Mon, 15 Jan 2024 11:45:12 +0000
Subject: [PATCH] [flang] Add install target to install flang headers
---
flang/CMakeLists.txt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/flang/CMakeLists.txt b/flang/CMakeLists.txt
index f81d3e33fe86c0c..f8ad39ba712f8c6 100644
--- a/flang/CMakeLists.txt
+++ b/flang/CMakeLists.txt
@@ -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
More information about the flang-commits
mailing list