diff --git a/CMakeLists.txt b/CMakeLists.txt index 833f140..f2efe11 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,14 +86,13 @@ if (SEMVER_INSTALL) DESTINATION ${CMAKE_INSTALL_DATADIR}/cmake/${PROJECT_NAME}) export(TARGETS ${PROJECT_NAME} - NAMESPACE ${PROJECT_NAME}:: - FILE ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-targets.cmake) + NAMESPACE ${PROJECT_NAME}:: + FILE ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-targets.cmake) if(SEMVER_BUILD_MODULE) install(TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}-targets - FILE_SET CXX_MODULES DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}/module - INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) + FILE_SET CXX_MODULES DESTINATION ${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}) else() install(TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}-targets