diff --git a/CMakeLists.txt b/CMakeLists.txt index f2efe11..b4ac0ad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,7 +92,12 @@ if (SEMVER_INSTALL) if(SEMVER_BUILD_MODULE) install(TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}-targets - FILE_SET CXX_MODULES DESTINATION ${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}) + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + FILE_SET CXX_MODULES DESTINATION ${CMAKE_INSTALL_LIBDIR}/miu) + install(EXPORT ${PROJECT_NAME}-targets + DESTINATION ${CMAKE_INSTALL_DATADIR}/cmake/${PROJECT_NAME} + NAMESPACE ${PROJECT_NAME}:: + CXX_MODULES_DIRECTORY "cxx-modules") else() install(TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}-targets