[flang-commits] [flang] 03f260f - [flang] Add install target to install flang headers (#78151)

via flang-commits flang-commits at lists.llvm.org
Tue Jan 16 09:04:57 PST 2024


Author: Tom Eccles
Date: 2024-01-16T17:04:52Z
New Revision: 03f260fd831fb0e5cd77599afb0437a36bc1cd0c

URL: https://github.com/llvm/llvm-project/commit/03f260fd831fb0e5cd77599afb0437a36bc1cd0c
DIFF: https://github.com/llvm/llvm-project/commit/03f260fd831fb0e5cd77599afb0437a36bc1cd0c.diff

LOG: [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`.

Added: 
    

Modified: 
    flang/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/flang/CMakeLists.txt b/flang/CMakeLists.txt
index f81d3e33fe86c0..f8ad39ba712f8c 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