From 857447c1a11828c3dbb33df54824840c8e844fa8 Mon Sep 17 00:00:00 2001 From: Florent Pruvost <florent.pruvost@inria.fr> Date: Fri, 9 Sep 2016 12:48:27 +0000 Subject: [PATCH] chameleon: out_of_core example, add -undefined dynamic_lookup for macosx --- example/out_of_core/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/example/out_of_core/CMakeLists.txt b/example/out_of_core/CMakeLists.txt index 1b6c61fc8..e8804c5bd 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) -- GitLab