Skip to content

Commit 8275e4a

Browse files
Teemperorvgvassilev
authored andcommitted
[cxxmodules] Also install generated C++ modules
We generate C++ modules, but we currently don't install them where they belong.
1 parent 83b23c0 commit 8275e4a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmake/modules/RootNewMacros.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,12 @@ function(ROOT_GENERATE_DICTIONARY dictionary)
432432
set_property(GLOBAL APPEND PROPERTY ROOT_DICTIONARY_TARGETS ${dictname})
433433
set_property(GLOBAL APPEND PROPERTY ROOT_DICTIONARY_FILES ${CMAKE_CURRENT_BINARY_DIR}/${dictionary}.cxx)
434434

435+
# Install the C++ module if we generated one.
436+
if (cpp_module_file)
437+
install(FILES ${cpp_module_file}
438+
DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT libraries)
439+
endif()
440+
435441
if(ARG_STAGE1)
436442
install(FILES ${rootmap_name}
437443
DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT libraries)

0 commit comments

Comments
 (0)