Skip to content

Commit

Permalink
Merge pull request #484 from mmuetzel/spex
Browse files Browse the repository at this point in the history
SPEX: Install CMake modules that are used in CMake Config file.
  • Loading branch information
DrTimothyAldenDavis authored Nov 1, 2023
2 parents 982b379 + 8c38b3b commit 509ab1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SPEX/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 )

#-------------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions SPEX/Config/SPEXConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -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 ( )
Expand Down

0 comments on commit 509ab1d

Please sign in to comment.