Commit 6a602466 authored by Ansgar Burchardt's avatar Ansgar Burchardt

Merge branch 'bugfix/UseUG-pass-OBJECT-option' into 'master'

Pass `OBJECT` option to `add_dune_mpi_flags`

See merge request !140
parent 08643ae1
Pipeline #1709 passed with stage
in 556 minutes and 21 seconds
......@@ -175,6 +175,12 @@ function(add_dune_ug_flags)
set(_prefix TARGET)
endif()
if(ADD_UG_OBJECT)
set(_object OBJECT)
else()
set(_object)
endif()
# Add compiler flags
include_directories(${UG_INCLUDES})
set_property(${_prefix} ${ADD_UG_UNPARSED_ARGUMENTS}
......@@ -203,7 +209,7 @@ function(add_dune_ug_flags)
APPEND PROPERTY
COMPILE_DEFINITIONS ModelP)
# Add mpi flags.
add_dune_mpi_flags(${ADD_UG_UNPARSED_ARGUMENTS} ${_source_only})
add_dune_mpi_flags(${ADD_UG_UNPARSED_ARGUMENTS} ${_source_only} ${_object})
endif()
endif()
endfunction(add_dune_ug_flags)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment