Skip to content

Commit b4d2483

Browse files
committed
Merge branch 'fix-macos' of github.com:sourceryinstitute/OpenCoarrays
2 parents 31f7f18 + d59e286 commit b4d2483

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/mpi/CMakeLists.txt

+8
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@ set_target_properties ( caf_mpi
8080
# VERSION ${PROJECT_VERSION}
8181
)
8282

83+
# Unfortunately caf_mpi.c calls a function directly from libgfortran and this can be resolved later
84+
if(APPLE)
85+
set_target_properties ( caf_mpi
86+
PROPERTIES
87+
LINK_FLAGS "-undefined dynamic_lookup"
88+
)
89+
endif()
90+
8391
# Create a symlink in the include dir
8492
if(UNIX)
8593
add_custom_command(TARGET caf_mpi

0 commit comments

Comments
 (0)