Skip to content
Snippets Groups Projects
Commit 67205d7d authored by Steffen Müthing's avatar Steffen Müthing
Browse files

[cmake] Link libdunealugrid against DUNE_LIBS

When building libdunealugrid as a shared library, linking fails (at
least on OS X) due to missing references to symbols in the core
libraries.

This patch fixes the problem by explicitly linking against the Dune
libraries.
parent 316c4f0e
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,11 @@ dune_add_library(dunealugrid
# add mpi flags to compile library
add_dune_mpi_flags( dunealugrid )
# on macOS, we have to explicitly link against the Dune libraries
if(CMAKE_HOST_APPLE)
target_link_libraries(dunealugrid ${DUNE_LIBS})
endif()
# METIS dependencies
if(METIS_FOUND)
target_link_libraries(dunealugrid ${METIS_LIBRARIES})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment