Fix compiler warning and DUNE 2.9/g++12 problem

Similar to opm-common. We need the set to still set
the flag --fext-numerical-literals
This commit is contained in:
Markus Blatt committed 2025-10-06 12:58:32 +02:00
1 parent 1acce0db7a
commit e05f91d687
1 file changed
+8 -2
+8 -2
View File
@@ -370,11 +370,17 @@ macro (sources_hook)
endif()
if(QuadMath_FOUND)
get_target_property(qm_defs QuadMath::QuadMath INTERFACE_COMPILE_DEFINITIONS)
list(APPEND qm_defs HAVE_QUAD=1)
get_target_property(qm_options QuadMath::QuadMath INTERFACE_COMPILE_OPTIONS)
if(qm_defs)
list(APPEND qm_defs HAVE_QUAD=1)
else()
set(qm_defs HAVE_QUAD=1)
endif()
set_source_files_properties(opm/models/nonlinear/newtonmethodparams.cpp
opm/models/utils/parametersystem.cpp
opm/models/utils/simulatorutils.cpp
PROPERTIES COMPILE_DEFINITIONS "${qm_defs}")
PROPERTIES COMPILE_DEFINITIONS "${qm_defs}"
COMPILE_OPTIONS "${qm_options}")
endif()
endmacro (sources_hook)