Commit 0521aa80 authored by GILLES Sebastien's avatar GILLES Sebastien

#1297 Fixed installation of programs with shared libraries in Linux.

parent 796e912e
......@@ -76,8 +76,10 @@ function(morefem_install)
get_target_property(target_type ${target} TYPE)
if (target_type STREQUAL "EXECUTABLE")
# Additional step to make shared library work on macOS; see https://gist.github.com/robertmaynard/5750737
set_target_properties(${target} PROPERTIES INSTALL_RPATH "@loader_path/../lib")
if (APPLE)
# Additional step to make shared library work on macOS; see https://gist.github.com/robertmaynard/5750737
set_target_properties(${target} PROPERTIES INSTALL_RPATH "@loader_path/../lib")
endif()
elseif()
generate_export_header(${target})
endif ()
......
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