Skip to content

Rewrite FindPTScotch to provide imported targets

Simon Praetorius requested to merge feature/find_ptscotch into master

Summary

This MR adds imported-targets to the FindPTScotch.cmake module, following modern cmake guidelines.

Details

Instead of exporting include directories and libraries as variables, the find modules exports an imported target that contains all the necessary information to include and link PTScotch. The find module introduces two imported targets: PTScotch::Scotch for the sequential graph partitioning library and PTScotch::PTScotch for the parallel library that additionally depends on MPI.

ToDo

  • Add version detection for (PT)Scotch library
Edited by Simon Praetorius

Merge request reports

Loading