From 3a807659ca8343a00fa08d98980bdd35af6109e0 Mon Sep 17 00:00:00 2001
From: Riccardo Maria Bianchi <riccardo.maria.bianchi@cern.ch>
Date: Fri, 16 Apr 2021 14:18:49 +0000
Subject: [PATCH] Fix README: add note that the extra step is only needed on
 macOS

---
 GeoModelXML/README.md | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/GeoModelXML/README.md b/GeoModelXML/README.md
index d29809099..df3323e5b 100644
--- a/GeoModelXML/README.md
+++ b/GeoModelXML/README.md
@@ -24,12 +24,19 @@ cmake -DCMAKE_INSTALL_PREFIX=../install/ -DGEOMODELATLAS_BUILD_GEOMODELXML=1 ../
 make
 make install
 
-# EXTRA STEP: Add a rpath, only needed when using a local 'install' folder 
-install_name_tool -add_rpath ../install/lib ../install/lib/libGMXPlugin.dylib
-
 cd ..
 ```
 
+### Post-build setup
+
+**NOTE:** This is only needed on macOS, and only when using a local `install` folder (instead of system folders like `usr/local/`). 
+
+This extra step tells the `GMXPlugin` where it can find the other libraries, when loaded as a plugin at runtime:
+
+```
+# EXTRA STEP: Add a rpath, only needed on macOS and when using a local 'install' folder 
+install_name_tool -add_rpath install/lib install/lib/libGMXPlugin.dylib
+```
 
 ## How to run it
 
-- 
GitLab