Skip to content

Commit

Permalink
Merge branch 'fix-check-header' into 'master'
Browse files Browse the repository at this point in the history
[ci] Fix check header job: add USE_PETSC define

See merge request ogs/ogs!5184
  • Loading branch information
bilke committed Dec 17, 2024
2 parents 9d599d1 + 90fa97a commit 58ef2bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/cmake/CheckHeaderCompilation.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ function(_check_header_compilation target)
endif()

get_target_property(_target_defs ${target} COMPILE_DEFINITIONS)
if(OGS_USE_PETSC)
list(APPEND _target_defs USE_PETSC)
endif()
foreach(def ${_target_defs})
# strip generator expressions
if(${def} MATCHES "\\$<.*")
Expand Down

0 comments on commit 58ef2bc

Please sign in to comment.