From 9940c1bad0ac874e0b5d3032bf09552d5988ed3b Mon Sep 17 00:00:00 2001 From: Michael Aichmueller Date: Thu, 13 Jun 2024 10:41:13 +0200 Subject: [PATCH] remove cmake module path from configure_package_config_file --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a4de95c3a..b7bac3906 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -102,7 +102,7 @@ if (UNIX AND BUILD_CPP_LIB) # Configure installable cmake config configure_package_config_file( - ${CMAKE_MODULE_PATH}/${PROJECT_NAME}-config.cmake.in + ${CMAKE_CURRENT_SOURCE_DIR}/../cmake/${PROJECT_NAME}-config.cmake.in ${PROJECT_NAME}-config.cmake INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})