Skip to content

Commit

Permalink
remove unused local option
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Feb 26, 2024
1 parent 047605c commit 80fe9ac
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions cmake/mumps_src.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,6 @@ include(FetchContent)

string(TOLOWER ${PROJECT_NAME}_src name)

if(local)

find_file(${name}_archive
NAMES ${name}.tar.bz2 ${name}.tar.gz ${name}.tar ${name}.zip ${name}.tar.zstd ${name}.tar.xz ${name}.tar.lz
HINTS ${local}
NO_DEFAULT_PATH
REQUIRED
)

message(STATUS "${name}: using source archive ${${name}_archive}")

FetchContent_Declare(${PROJECT_NAME}
URL ${${name}_archive}
)

else()

if(NOT MUMPS_UPSTREAM_VERSION)
message(FATAL_ERROR "please specify MUMPS_UPSTREAM_VERSION")
endif()
Expand Down Expand Up @@ -60,8 +43,6 @@ URL ${urls}
URL_HASH SHA256=${sha256}
)

endif()

FetchContent_GetProperties(${PROJECT_NAME})
if(NOT ${PROJECT_NAME}_POPULATED)
FetchContent_Populate(${PROJECT_NAME})
Expand Down

0 comments on commit 80fe9ac

Please sign in to comment.