diff --git a/example/out_of_core/CMakeLists.txt b/example/out_of_core/CMakeLists.txt
index 1b6c61fc8a93e999d2069b2a580c16cb38d54f00..e8804c5bd0ed478c1dc3642593f092ebb9373608 100644
--- a/example/out_of_core/CMakeLists.txt
+++ b/example/out_of_core/CMakeLists.txt
@@ -94,6 +94,9 @@ foreach(_ooc ${OOC_SOURCES})
     get_filename_component(_name_exe ${_ooc} NAME_WE)
     add_executable(${_name_exe} ${_ooc})
     set_property(TARGET ${_name_exe} PROPERTY LINKER_LANGUAGE Fortran)
+    if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+        set( CMAKE_EXE_LINKER_FLAGS  "${CMAKE_EXE_LINKER_FLAGS} -undefined dynamic_lookup" )
+    endif()
     target_link_libraries(${_name_exe} ${libs_for_ooc})
     install(TARGETS ${_name_exe}
             DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/chameleon/example/out_of_core)