Skip to content

Commit

Permalink
cmake >= 3.19
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Dec 6, 2021
1 parent 5278e7a commit cf41347
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 15 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
steps:
- uses: actions/checkout@v2

# GitHub Actions windows image doesn't have WSL, so use version without need to patch
- run: cmake -B build -Darith=d -Dparallel:BOOL=false "-DMUMPS_UPSTREAM_VERSION=5.3.5"
- run: cmake -B build -Darith=d -Dparallel:BOOL=false
- run: cmake --build build
- run: ctest --test-dir build --preset default
12 changes: 3 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.20...3.22)
cmake_minimum_required(VERSION 3.19...3.22)

get_property(is_multi_config GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
if(NOT is_multi_config AND NOT (CMAKE_BUILD_TYPE OR DEFINED ENV{CMAKE_BUILD_TYPE}))
Expand All @@ -15,16 +15,10 @@ DESCRIPTION "Sparse direct parallel solver"
HOMEPAGE_URL "http://mumps-solver.org/"
)

include(CTest)
enable_testing()

if(NOT MUMPS_UPSTREAM_VERSION)
set(MUMPS_UPSTREAM_VERSION 5.4.1)
endif()

if(CMAKE_GENERATOR STREQUAL "Ninja Multi-Config")
set(EXTPROJ_GENERATOR "Ninja")
else()
set(EXTPROJ_GENERATOR ${CMAKE_GENERATOR})
set(MUMPS_UPSTREAM_VERSION 5.3.5)
endif()

if(MSVC AND BUILD_SHARED_LIBS)
Expand Down
2 changes: 1 addition & 1 deletion cmake/Modules/FindSCALAPACK.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ else()
)

# some systems have libblacs as a separate file, instead of being subsumed in libscalapack.
cmake_path(GET SCALAPACK_LIBRARY PARENT_PATH BLACS_ROOT)
get_filename_component(BLACS_ROOT ${SCALAPACK_LIBRARY} DIRECTORY)

find_library(BLACS_LIBRARY
NAMES blacs
Expand Down
2 changes: 1 addition & 1 deletion cmake/libraries.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"scalapack": {
"git": "https://github.com/scivision/scalapack.git",
"tag": "v2.1.0.29"
"tag": "v2.1.0.30"
},

"mumps": {
Expand Down
8 changes: 7 additions & 1 deletion cmake/options.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
option(autobuild "auto-build Lapack and/or Scalapack if missing or broken" true)

option(BUILD_TESTING "build with testing features" true)
option(dev "developer mode")
option(parallel "parallel or sequential (non-MPI, non-Scalapack)" ON)
option(intsize64 "use 64-bit integers in C and Fortran" OFF)
Expand Down Expand Up @@ -32,6 +32,12 @@ else()
set_directory_properties(PROPERTIES EP_UPDATE_DISCONNECTED true)
endif()

if(CMAKE_GENERATOR STREQUAL "Ninja Multi-Config")
set(EXTPROJ_GENERATOR "Ninja")
else()
set(EXTPROJ_GENERATOR ${CMAKE_GENERATOR})
endif()


if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
# will not take effect without FORCE
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"downloadUrl": "https://github.com/scivision/mumps/releases",
"issueTracker": "https://github.com/scivision/mumps/issues",
"name": "MUMPS",
"version": "5.4.1.8",
"version": "5.4.1.9",
"identifier": "10.1145/3242094",
"description": "MUltifrontal Massively Parallel sparse direct Solver",
"applicationCategory": "linear algebra",
Expand Down

1 comment on commit cf41347

@scivision
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cf41347 fixes #20

Please sign in to comment.