File tree 5 files changed +8
-3
lines changed
5 files changed +8
-3
lines changed Original file line number Diff line number Diff line change
1
+ set (LIBCXX_INSTALL_MODULES ON CACHE BOOL "" ) # TODO MODULES Remove when enabled automatically.
1
2
set (LIBCXX_TEST_PARAMS "std=c++20" CACHE STRING "" )
2
3
set (LIBCXXABI_TEST_PARAMS "${LIBCXX_TEST_PARAMS} " CACHE STRING "" )
Original file line number Diff line number Diff line change
1
+ set (LIBCXX_INSTALL_MODULES ON CACHE BOOL "" ) # TODO MODULES Remove when enabled automatically.
1
2
set (LIBCXX_TEST_PARAMS "std=c++23" CACHE STRING "" )
2
3
set (LIBCXXABI_TEST_PARAMS "${LIBCXX_TEST_PARAMS} " CACHE STRING "" )
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ Improvements and New Features
98
98
configuring CMake with ``-DLIBCXX_INSTALL_MODULES=ON ``. The installation
99
99
directory can be configured with the CMake option
100
100
``-DLIBCXX_INSTALL_MODULE_DIR=<path> ``. The default location is
101
- ``share/libc++/v1 `` in the same prefix as the `` include `` directory .
101
+ ``${PREFIX}/ share/libc++/v1 ``.
102
102
103
103
104
104
Deprecations and Removals
Original file line number Diff line number Diff line change @@ -183,6 +183,7 @@ add_custom_target(generate-cxx-modules
183
183
${_all_modules}
184
184
)
185
185
186
+ # Configure the modules manifest.
186
187
# Use the relative path between the installation and the module in the json
187
188
# file. This allows moving the entire installation to a different location.
188
189
file (RELATIVE_PATH LIBCXX_MODULE_RELATIVE_PATH
@@ -232,6 +233,6 @@ if (LIBCXX_INSTALL_MODULE_INTERFACE_UNIT_SOURCES)
232
233
-DCMAKE_INSTALL_COMPONENT=cxx-modules
233
234
-P "${CMAKE_BINARY_DIR} /cmake_install.cmake" )
234
235
# Stripping is a no-op for modules
235
- add_custom_target (install -cxx-modules-stripped DEPENDS install -cxx-headers )
236
+ add_custom_target (install -cxx-modules-stripped DEPENDS install -cxx-modules )
236
237
endif ()
237
238
endif ()
Original file line number Diff line number Diff line change @@ -400,19 +400,21 @@ if (NOT CMAKE_CONFIGURATION_TYPES)
400
400
set (header_install_target install -cxx-headers)
401
401
endif ()
402
402
if (LIBCXX_INSTALL_MODULE_INTERFACE_UNIT_SOURCES)
403
- set (header_install_target install -cxx-modules)
403
+ set (module_install_target install -cxx-modules)
404
404
endif ()
405
405
add_custom_target (install -cxx
406
406
DEPENDS ${lib_install_target}
407
407
cxx_experimental
408
408
${header_install_target}
409
+ ${module_install_target}
409
410
COMMAND "${CMAKE_COMMAND} "
410
411
-DCMAKE_INSTALL_COMPONENT=cxx
411
412
-P "${LIBCXX_BINARY_DIR} /cmake_install.cmake" )
412
413
add_custom_target (install -cxx-stripped
413
414
DEPENDS ${lib_install_target}
414
415
cxx_experimental
415
416
${header_install_target}
417
+ ${module_install_target}
416
418
COMMAND "${CMAKE_COMMAND} "
417
419
-DCMAKE_INSTALL_COMPONENT=cxx
418
420
-DCMAKE_INSTALL_DO_STRIP=1
You can’t perform that action at this time.
0 commit comments