From bf554b9dab068056a69d3254f62b553645147c6f Mon Sep 17 00:00:00 2001 From: Sylvester Joosten <sjoosten@anl.gov> Date: Tue, 2 Apr 2019 12:47:34 -0500 Subject: [PATCH] setup Rpath for MacOS --- cmake/hcanaConfig.cmake.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmake/hcanaConfig.cmake.in b/cmake/hcanaConfig.cmake.in index e476f96..bc5d726 100644 --- a/cmake/hcanaConfig.cmake.in +++ b/cmake/hcanaConfig.cmake.in @@ -15,3 +15,10 @@ include("@PACKAGE_TARGETS_FILE@") check_required_components(@PROJECT_NAME_UC@) +## Extra rpath stuff for MacOS +if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") + set(CMAKE_INSTALL_RPATH + ${CMAKE_INSTALL_RPATH} + "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@") + message("Podd: set rpath to ${CMAKE_INSTALL_RPATH}") +endif() -- GitLab