Skip to content

Commit

Permalink
Workaround possibly set HAVE_DUNE_MODULE (DUNE 2.10).
Browse files Browse the repository at this point in the history
For 2.10 this is set by the *-config.cmake file to TRUE which
suddenly resulted in
```
```
appearing in config.h. As TRUE is not defined we would pretend that there
is no dune-istl and compilation would fail where we pack BlockVectors
for serialization.
  • Loading branch information
blattms committed Oct 2, 2024
1 parent c1b5746 commit 1b13252
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/Modules/OpmPackage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ macro (find_opm_package module deps header lib defs prog conf)
# since we don't have any config.h yet
list (APPEND CMAKE_REQUIRED_DEFINITIONS ${${module}_DEFINITIONS})
list (APPEND CMAKE_REQUIRED_DEFINITIONS ${${module}_CMD_CONFIG})
if(HAVE_${MODULE} STREQUAL "TRUE")
set(HAVE_${MODULE} "")
endif()
check_cxx_source_compiles ("${prog}" HAVE_${MODULE})
cmake_pop_check_state ()
else()
Expand Down

0 comments on commit 1b13252

Please sign in to comment.