mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-11-02 20:30:55 -06:00
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:
1 parent
1acce0db7a
commit
e05f91d687
1 file changed
+8
-2
+8
-2
@@ -370,11 +370,17 @@ macro (sources_hook)
|
|||||||
endif()
|
endif()
|
||||||
if(QuadMath_FOUND)
|
if(QuadMath_FOUND)
|
||||||
get_target_property(qm_defs QuadMath::QuadMath INTERFACE_COMPILE_DEFINITIONS)
|
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
|
set_source_files_properties(opm/models/nonlinear/newtonmethodparams.cpp
|
||||||
opm/models/utils/parametersystem.cpp
|
opm/models/utils/parametersystem.cpp
|
||||||
opm/models/utils/simulatorutils.cpp
|
opm/models/utils/simulatorutils.cpp
|
||||||
PROPERTIES COMPILE_DEFINITIONS "${qm_defs}")
|
PROPERTIES COMPILE_DEFINITIONS "${qm_defs}"
|
||||||
|
COMPILE_OPTIONS "${qm_options}")
|
||||||
endif()
|
endif()
|
||||||
endmacro (sources_hook)
|
endmacro (sources_hook)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user