Skip to content

Commit

Permalink
SPEX: Install CMake modules that are used in CMake Config file.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuetzel committed Oct 31, 2023
1 parent 39d2bef commit 8c38b3b
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 8c38b3b

Please sign in to comment.