From 9e7626c35de0da09ac631814bd12d47d54f151c2 Mon Sep 17 00:00:00 2001 From: Thomas Hahn Date: Wed, 17 Apr 2024 14:22:59 -0400 Subject: [PATCH] [cmake] Undo renaming of cmake config files being installed --- share/cmake/CMakeLists.txt | 8 ++++---- ...na-config.cmake.in => triqs_NevanlinnaConfig.cmake.in} | 2 +- ...on.cmake.in => triqs_NevanlinnaConfigVersion.cmake.in} | 0 3 files changed, 5 insertions(+), 5 deletions(-) rename share/cmake/{triqs_Nevanlinna-config.cmake.in => triqs_NevanlinnaConfig.cmake.in} (92%) rename share/cmake/{triqs_Nevanlinna-config-version.cmake.in => triqs_NevanlinnaConfigVersion.cmake.in} (100%) diff --git a/share/cmake/CMakeLists.txt b/share/cmake/CMakeLists.txt index c845b7b..cfd8834 100644 --- a/share/cmake/CMakeLists.txt +++ b/share/cmake/CMakeLists.txt @@ -1,9 +1,9 @@ -configure_file(${PROJECT_NAME}-config.cmake.in ${PROJECT_NAME}-config.cmake @ONLY) -configure_file(${PROJECT_NAME}-config-version.cmake.in ${PROJECT_NAME}-config-version.cmake @ONLY) +configure_file(${PROJECT_NAME}Config.cmake.in ${PROJECT_NAME}Config.cmake @ONLY) +configure_file(${PROJECT_NAME}ConfigVersion.cmake.in ${PROJECT_NAME}ConfigVersion.cmake @ONLY) install( FILES - ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config.cmake - ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config-version.cmake + ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake + ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME} ) diff --git a/share/cmake/triqs_Nevanlinna-config.cmake.in b/share/cmake/triqs_NevanlinnaConfig.cmake.in similarity index 92% rename from share/cmake/triqs_Nevanlinna-config.cmake.in rename to share/cmake/triqs_NevanlinnaConfig.cmake.in index 0445e4f..b889c57 100644 --- a/share/cmake/triqs_Nevanlinna-config.cmake.in +++ b/share/cmake/triqs_NevanlinnaConfig.cmake.in @@ -38,7 +38,7 @@ find_package(OpenMP REQUIRED COMPONENTS CXX) # Include the exported targets of this project include(@CMAKE_INSTALL_FULL_LIBDIR@/cmake/@PROJECT_NAME@/@PROJECT_NAME@-targets.cmake) -message(STATUS "Found @PROJECT_NAME@-config.cmake with version @PROJECT_VERSION@, hash = @PROJECT_GIT_HASH@, root = @CMAKE_INSTALL_PREFIX@") +message(STATUS "Found @PROJECT_NAME@Config.cmake with version @PROJECT_VERSION@, hash = @PROJECT_GIT_HASH@, root = @CMAKE_INSTALL_PREFIX@") # Was the Project built with Documentation? set(@PROJECT_NAME@_WITH_DOCUMENTATION @Build_Documentation@ CACHE BOOL "Was @PROJECT_NAME@ build with documentation?") diff --git a/share/cmake/triqs_Nevanlinna-config-version.cmake.in b/share/cmake/triqs_NevanlinnaConfigVersion.cmake.in similarity index 100% rename from share/cmake/triqs_Nevanlinna-config-version.cmake.in rename to share/cmake/triqs_NevanlinnaConfigVersion.cmake.in