Skip to content
Snippets Groups Projects
Commit 9c8ff584 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[!657] Deprecate old versions of METIS and ParMETIS

Merge branch 'feature/deprecate-old-metis-parmetis' into 'master'

See merge request [!657]

  [!657]: Nonecore/dune-common/merge_requests/657
parents 8d8ab5ab 3d05cd41
No related branches found
No related tags found
Loading
Pipeline #18295 passed
......@@ -41,6 +41,9 @@
- The `dune_symlink_to_sources_files` cmake function now has a `DESTINATION` argument.
- Support for older version than METIS 5.x and ParMETIS 4.x is deprecated and will be
removed after Dune 2.7.
- The `inkscape_generate_png_from_svg` CMake function is deprecated and will be removed
after 2.7.
......
......@@ -134,6 +134,13 @@ if(METIS_FOUND)
"Determing location of METIS succeeded:\n"
"Include directory: ${METIS_INCLUDE_DIRS}\n"
"Library directory: ${METIS_LIBRARIES}\n\n")
# deprecate versions < 5
file(READ "${METIS_INCLUDE_DIR}/metis.h" metisheader)
string(REGEX MATCH "#define METIS_VER_MAJOR[ ]+[0-9]+" versionMacroDef "${metisheader}")
string(REGEX MATCH "[0-9]+" MetisMajorVersion "${versionMacroDef}")
if("${versionMacroDef}" STREQUAL "" OR "${MetisMajorVersion}" LESS 5)
message(AUTHOR_WARNING "Support for METIS older than version 5.x is deprecated in Dune 2.7")
endif()
else(METIS_FOUND)
# log errornous result
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
......
......@@ -157,6 +157,13 @@ if(PARMETIS_FOUND)
"Determing location of ParMETIS succeeded:\n"
"Include directory: ${PARMETIS_INCLUDE_DIRS}\n"
"Library directory: ${PARMETIS_LIBRARIES}\n\n")
# deprecate versions < 4
file(READ "${PARMETIS_INCLUDE_DIR}/parmetis.h" parmetisheader)
string(REGEX MATCH "#define PARMETIS_MAJOR_VERSION[ ]+[0-9]+" versionMacroDef "${parmetisheader}")
string(REGEX MATCH "[0-9]+" ParMetisMajorVersion "${versionMacroDef}")
if("${versionMacroDef}" STREQUAL "" OR "${ParMetisMajorVersion}" LESS 4)
message(AUTHOR_WARNING "Support for METIS older than version 4.x is deprecated in Dune 2.7")
endif()
else()
# log errornous result
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment