We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91be57e commit ee47ee4Copy full SHA for ee47ee4
docs/content/mongocxx-v3/installation/linux.md
@@ -100,6 +100,16 @@ cmake .. \
100
-DCMAKE_INSTALL_PREFIX=/usr/local
101
```
102
103
+If installing to a non-standard directory (i.e., one which the dynamic loader does not search),
104
+consider specifying the `-DCMAKE_INSTALL_RPATH=` option:
105
+
106
+```
107
+cmake .. \
108
+ -DCMAKE_BUILD_TYPE=Release \
109
+ -DCMAKE_INSTALL_PREFIX=/opt/mongo \
110
+ -DCMAKE_INSTALL_RPATH=/opt/mongo
111
112
113
In the Unix examples that follow, `mongocxx` is customized in these ways:
114
115
* `libmongoc` is found in `/opt/mongo-c-driver`.
0 commit comments