File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -601,5 +601,7 @@ configure_file(
601601get_clang_resource_dir(HEADER_INSTALL_DIR SUBDIR include )
602602install (
603603 FILES include /flang/ISO_Fortran_binding.h
604- DESTINATION ${HEADER_INSTALL_DIR} )
605-
604+ DESTINATION ${HEADER_INSTALL_DIR}
605+ COMPONENT flang-fortran-binding)
606+ add_llvm_install_targets(install -flang-fortran-binding
607+ COMPONENT flang-fortran-binding)
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ if (NOT CMAKE_CROSSCOMPILING)
124124 DEPENDS flang ${FLANG_SOURCE_DIR} /module/${filename} .f90 ${FLANG_SOURCE_DIR} /module/__fortran_builtins.f90 ${depends}
125125 )
126126 list (APPEND MODULE_FILES ${base} .mod)
127- install (FILES ${base} .mod DESTINATION "${CMAKE_INSTALL_INCLUDEDIR} /flang" )
127+ install (FILES ${base} .mod DESTINATION "${CMAKE_INSTALL_INCLUDEDIR} /flang" COMPONENT flang-module-interfaces )
128128
129129 # If a module has been compiled into an object file, add the file to
130130 # the link line for the flang_rt.runtime library.
@@ -157,12 +157,14 @@ if (NOT CMAKE_CROSSCOMPILING)
157157 DEPENDS ${base} .mod
158158 COMMAND ${CMAKE_COMMAND} -E copy ${base} _kinds.mod ${base} _kinds.f18.mod)
159159 list (APPEND MODULE_FILES ${base} .mod ${base} .f18.mod ${base} _kinds.mod ${base} _kinds.f18.mod)
160- install (FILES ${base} .mod ${base} .f18.mod ${base} _kinds.mod ${base} _kinds.f18.mod DESTINATION "${CMAKE_INSTALL_INCLUDEDIR} /flang" )
160+ install (FILES ${base} .mod ${base} .f18.mod ${base} _kinds.mod ${base} _kinds.f18.mod DESTINATION "${CMAKE_INSTALL_INCLUDEDIR} /flang" COMPONENT flang-module-interfaces )
161161 elseif ("openmp" IN_LIST LLVM_ENABLE_RUNTIMES)
162162 message (STATUS "OpenMP runtime support enabled via LLVM_ENABLE_RUNTIMES, assuming omp_lib.mod is built there" )
163163 else ()
164164 message (WARNING "Not building omp_lib.mod, no OpenMP runtime in either LLVM_ENABLE_PROJECTS or LLVM_ENABLE_RUNTIMES" )
165165 endif ()
166+ add_llvm_install_targets(install -flang-module-interfaces
167+ COMPONENT flang-module-interfaces)
166168endif ()
167169
168170add_custom_target (module_files ALL DEPENDS ${MODULE_FILES} )
You can’t perform that action at this time.
0 commit comments