You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,23 @@ directory:
23
23
Please note that CMake produces a `CMakeCache.txt` file which should
24
24
be deleted to reconfigure a package from scratch.
25
25
26
+
#### Compiling for python3 on macOS
27
+
28
+
Make sure you have boost for python3 installed. If you use homebrew, you can install it via `brew install boost-python3`.
29
+
30
+
Assuming you have python2 and python3 installed on your system, you can compile for python3 using
31
+
32
+
```
33
+
cmake -DPYTHON_EXECUTABLE=`which python3` ..
34
+
```
35
+
36
+
In case you get an error as only the libraries for python2 are found, make sure macOS can find the python3 libraries. One way to ensure this is by adding a symbolic link to the python3 libraries like
0 commit comments