[libcxx-commits] [libcxx] [RFC][libc++] Install modules. (PR #75741)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jan 16 09:25:30 PST 2024


================
@@ -397,6 +397,9 @@ if (NOT CMAKE_CONFIGURATION_TYPES)
     if(LIBCXX_INSTALL_HEADERS)
       set(header_install_target install-cxx-headers)
     endif()
+    if(LIBCXX_INSTALL_MODULE_INTERFACE_UNIT_SOURCES)
+      set(header_install_target install-cxx-modules)
+    endif()
     add_custom_target(install-cxx
                       DEPENDS ${lib_install_target}
                               cxx_experimental
----------------
ldionne wrote:

Here you want 

```cmake
add_custom_target(install-cxx
                       DEPENDS ${lib_install_target}
                               cxx_experimental
                               ${header_install_target}
                               ${module_install_target}
```

and the same for `install-cxx-stripped`.

https://github.com/llvm/llvm-project/pull/75741


More information about the libcxx-commits mailing list