Skip to content

Commit

Permalink
build metis: intsize option
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Dec 2, 2022
1 parent ad6a37e commit d293dfd
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ endif()

project(MUMPS
LANGUAGES C Fortran
VERSION 5.5.1.8
VERSION 5.5.1.9
DESCRIPTION "Sparse direct parallel solver"
HOMEPAGE_URL "http://mumps-solver.org/"
)
Expand Down
2 changes: 1 addition & 1 deletion cmake/libraries.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"metis": {
"git": "https://github.com/scivision/METIS.git",
"tag": "v5.1.0.2"
"tag": "v5.1.0.3"
},
"scotch": {
"git": "https://gitlab.inria.fr/scotch/scotch.git",
Expand Down
5 changes: 3 additions & 2 deletions scripts/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ CONFIGURE_HANDLED_BY_BUILD true

# METIS

set(metis_cmake_args ${cmake_args})
# METIS doesn't use INTSIZE64 like Scotch
set(metis_cmake_args ${cmake_args}
-Dintsize=$<IF:$<BOOL:${intsize64}>,64,32>
)

string(JSON metis_url GET ${json} metis git)
string(JSON metis_tag GET ${json} metis tag)
Expand Down
8 changes: 6 additions & 2 deletions scripts/build_metis.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@ if(NOT bindir)
endif()
endif()

execute_process(COMMAND ${CMAKE_COMMAND} ${args}
set(args -Dintsize64:BOOL=${intsize64})
if(prefix)
list(APPEND args -DCMAKE_INSTALL_PREFIX:PATH=${prefix})
endif()
execute_process(COMMAND ${CMAKE_COMMAND}
-B${bindir}
-S${CMAKE_CURRENT_LIST_DIR}
-DCMAKE_INSTALL_PREFIX:PATH=${prefix}
${args}
RESULT_VARIABLE ret
)

Expand Down
8 changes: 6 additions & 2 deletions scripts/build_scotch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@ if(NOT bindir)
endif()
endif()

execute_process(COMMAND ${CMAKE_COMMAND} ${args}
set(args -Dintsize64:BOOL=${intsize64})
if(prefix)
list(APPEND args -DCMAKE_INSTALL_PREFIX:PATH=${prefix})
endif()
execute_process(COMMAND ${CMAKE_COMMAND}
-B${bindir}
-S${CMAKE_CURRENT_LIST_DIR}
-DCMAKE_INSTALL_PREFIX:PATH=${prefix}
${args}
RESULT_VARIABLE ret
)

Expand Down

0 comments on commit d293dfd

Please sign in to comment.