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 ( )