Skip to content

Commit

Permalink
FetchContent: use modern syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed May 27, 2024
1 parent 0e5db53 commit 8fedcf5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ endif()

project(MUMPS
LANGUAGES C Fortran
VERSION 5.7.1.0
VERSION 5.7.1.1
DESCRIPTION "Sparse direct parallel solver"
HOMEPAGE_URL "http://mumps-solver.org/"
)
Expand Down Expand Up @@ -115,17 +115,12 @@ set(url "https://mumps-solver.org/MUMPS_${MUMPS_UPSTREAM_VERSION}.tar.gz")

set(FETCHCONTENT_QUIET no)

FetchContent_Declare(${PROJECT_NAME}
FetchContent_Populate(${PROJECT_NAME}
SOURCE_DIR ${PROJECT_SOURCE_DIR}/mumps/${MUMPS_UPSTREAM_VERSION}
URL ${url}
TLS_VERIFY ${CMAKE_TLS_VERIFY}
)

FetchContent_GetProperties(${PROJECT_NAME})
if(NOT ${PROJECT_NAME}_POPULATED)
FetchContent_Populate(${PROJECT_NAME})
endif()

message(VERBOSE "MUMPS ${MUMPS_UPSTREAM_VERSION} source directory: ${mumps_SOURCE_DIR}")

# --- MUMPS build
Expand Down

0 comments on commit 8fedcf5

Please sign in to comment.