Skip to content

Commit

Permalink
[ci] Fix check header job: add USE_PETSC define.
Browse files Browse the repository at this point in the history
  • Loading branch information
bilke committed Dec 17, 2024
1 parent 9d599d1 commit 90fa97a
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 90fa97a

Please sign in to comment.