From 01f5fc4de13a1d975b49e736623b204a64c20012 Mon Sep 17 00:00:00 2001 From: Ben Hourahine Date: Sun, 17 Mar 2024 12:15:44 +0000 Subject: [PATCH 1/2] Add comments to the finder file --- cmake/Modules/Findelsi.cmake | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/cmake/Modules/Findelsi.cmake b/cmake/Modules/Findelsi.cmake index 4e65449cfb..89666ff0ff 100644 --- a/cmake/Modules/Findelsi.cmake +++ b/cmake/Modules/Findelsi.cmake @@ -1,3 +1,41 @@ +# Distributed under the OSI-approved BSD 3-Clause License. +# +# Copyright (C) 2023 DFTB+ developers group +# + +#[=======================================================================[.rst: +Findelsi +-------- + +Finds the ELSI library + + +Imported Targets +^^^^^^^^^^^^^^^^ + +This module provides the following imported target, if found: + +``elsi::elsi`` + The ELSI library + +And, depending on the library build options: + +``elsi::pexsi`` + The PEXSI library + +Result Variables +^^^^^^^^^^^^^^^^ + +This module will define the following variable: + +``ELSI_FOUND`` + True if the system has the ELSI library + +``ELSI_VERSION`` + Detected version of the library + +#]=======================================================================] + if(NOT TARGET elsi::elsi) find_package(PkgConfig QUIET) pkg_check_modules(ELSI QUIET elsi) From 4849638fdcf1f7916e6aafe9e2baac2d19795b65 Mon Sep 17 00:00:00 2001 From: Ben Hourahine Date: Wed, 10 Apr 2024 12:06:45 +0100 Subject: [PATCH 2/2] Update cmake/Modules/Findelsi.cmake Co-authored-by: Tammo van der Heide --- cmake/Modules/Findelsi.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Modules/Findelsi.cmake b/cmake/Modules/Findelsi.cmake index 89666ff0ff..27b7aedf53 100644 --- a/cmake/Modules/Findelsi.cmake +++ b/cmake/Modules/Findelsi.cmake @@ -1,6 +1,6 @@ # Distributed under the OSI-approved BSD 3-Clause License. # -# Copyright (C) 2023 DFTB+ developers group +# Copyright (C) 2024 DFTB+ developers group # #[=======================================================================[.rst: