
Ruben Perez wrote:
On Sun, 22 Dec 2024 at 17:02, Peter Dimov via Boost
wrote: Ruben Perez wrote:
install(TARGETS ${LIB} EXPORT ${LIB}-targets RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" PRIVATE_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" FILE_SET CXX_MODULES DESTINATION . )
`DESTINATION .`? Where does this put the module files? In /usr?
No. It places them under ${CMAKE_INSTALL_PREFIX}/./modules/${LIB}.cxx.
If we assume the default prefix of /usr, this means /usr/modules/core.cxx, which doesn't seem quite right on a number of levels. My instinct was to call the source file boost_core.cppm, and it seems like it was correct. The current convention for modules seems to be either CMAKE_INSTALL_LIBDIR or CMAKE_INSTALL_DATADIR.