Commit 857447c1 authored by PRUVOST Florent's avatar PRUVOST Florent
Browse files

chameleon: out_of_core example, add -undefined dynamic_lookup for macosx

parent 74b94900
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment