From 42017b54e6f0e556f2569c4b4a27d28db4bee36f Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Wed, 20 Dec 2023 10:47:50 +0100 Subject: [PATCH] [ci] Fix check header job. --- scripts/cmake/CheckHeaderCompilation.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/cmake/CheckHeaderCompilation.cmake b/scripts/cmake/CheckHeaderCompilation.cmake index 05bdeec7106..07773fbbf56 100644 --- a/scripts/cmake/CheckHeaderCompilation.cmake +++ b/scripts/cmake/CheckHeaderCompilation.cmake @@ -44,7 +44,7 @@ function(_check_header_compilation target) Eigen3::Eigen nlohmann_json::nlohmann_json range-v3 - # petsc; is given via ${PETSC_INCLUDES} below. + PkgConfig::PETSC ) # Ignore non-existing targets or interface libs if(NOT TARGET ${lib}) @@ -73,7 +73,7 @@ function(_check_header_compilation target) include(CheckCXXSourceCompiles) # cmake-lint: disable=C0103 - set(CMAKE_REQUIRED_INCLUDES ${INCLUDE_DIRS} ${SOURCE_DIR} ${PETSC_INCLUDES}) + set(CMAKE_REQUIRED_INCLUDES ${INCLUDE_DIRS} ${SOURCE_DIR}) # HACK, maybe add Gui Widgets Xml XmlPatterns as well if(OGS_BUILD_GUI) set(CMAKE_REQUIRED_INCLUDES -- GitLab