From 8c38b3b76d14d5faa7960ef815a48d9cf4a78a41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=BCtzel?= Date: Tue, 31 Oct 2023 17:45:13 +0100 Subject: [PATCH] SPEX: Install CMake modules that are used in CMake Config file. --- SPEX/CMakeLists.txt | 2 ++ SPEX/Config/SPEXConfig.cmake.in | 1 + 2 files changed, 3 insertions(+) diff --git a/SPEX/CMakeLists.txt b/SPEX/CMakeLists.txt index 38520693e..b69c700d9 100644 --- a/SPEX/CMakeLists.txt +++ b/SPEX/CMakeLists.txt @@ -239,6 +239,8 @@ write_basic_package_version_file ( install ( FILES ${CMAKE_CURRENT_BINARY_DIR}/SPEXConfig.cmake ${CMAKE_CURRENT_BINARY_DIR}/SPEXConfigVersion.cmake + ${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules/FindGMP.cmake + ${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules/FindMPFR.cmake DESTINATION ${SUITESPARSE_PKGFILEDIR}/cmake/SPEX ) #------------------------------------------------------------------------------- diff --git a/SPEX/Config/SPEXConfig.cmake.in b/SPEX/Config/SPEXConfig.cmake.in index f0aee1d6b..869c0cd19 100644 --- a/SPEX/Config/SPEXConfig.cmake.in +++ b/SPEX/Config/SPEXConfig.cmake.in @@ -83,6 +83,7 @@ else ( ) endif ( ) # Look for GMP and MPFR modules +list ( PREPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR} ) if ( NOT GMP_FOUND ) find_dependency ( GMP 6.1.2 ) endif ( )