diff --git a/parallel/CMakeLists.txt b/parallel/CMakeLists.txt index 10376f27ce7e8f79c001e4b0bda5b1ee700d2d65..4e0daa9f7a686493b1f0bb11f1adc4737a4f7796 100644 --- a/parallel/CMakeLists.txt +++ b/parallel/CMakeLists.txt @@ -3,7 +3,7 @@ if(MPI_C_FOUND) # Maybe dune-common should export them? add_definitions(-DENABLE_MPI=1 -DMPICH_SKIP_MPICXX -DMPIPP_H) include_directories("${MPI_DUNE_INCLUDE_PATH}") - set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS ${MPI_DUNE_COMPILE_FLAGS}) + set_property(DIRECTORY APPEND PROPERTY COMPILE_OPTIONS "${MPI_DUNE_COMPILE_FLAGS}") ug_add_dim_libs(parallel OBJECT initparallel.cc) # OBJECT_DIM_LIBS ddd dddif) endif()