Skip to content
Snippets Groups Projects

Pass `OBJECT` option to `add_dune_mpi_flags`

Merged Ansgar Burchardt requested to merge bugfix/UseUG-pass-OBJECT-option into master
  1. Jan 04, 2017
    • Ansgar Burchardt's avatar
      Pass `OBJECT` option to `add_dune_mpi_flags` · f39c61bb
      Ansgar Burchardt authored
      The `OBJECT` option has to be passed on to `add_dune_mpi_flags`.
      Otherwise one will get an error when using the parallel version of UG
      with object libraries:
      
      ```
      CMake Error at [...]/dune-common/cmake/modules/DuneMPI.cmake:62 (target_link_libraries):
        Object library target "[...]" may not link to anything.
      Call Stack (most recent call first):
        [...]/dune-grid/cmake/modules/UseUG.cmake:206 (add_dune_mpi_flags)
        [...]/CMakeLists.txt:62 (add_dune_ug_flags)
      ```
      f39c61bb
Loading