Skip to content

Commit a0873c8

Browse files
committed
Merge branch 'master' of https://github.com/SRI-CSL/libpoly
2 parents fa4248b + 4bb7f99 commit a0873c8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,17 @@ For example, to use Python3 you can configure the project with
6060
cmake .. -DPython_ADDITIONAL_VERSIONS=3
6161
```
6262

63+
### Python Version Skew
64+
65+
On some platforms (i.e. Mac) cmake picks different python installations for the headers and library. If this happens,
66+
you might try:
67+
```cmake
68+
cmake .. -DCMAKE_BUILD_TYPE=$type -DPYTHON_LIBRARY=$pythonlibrary -DPYTHON_INCLUDE_DIR=$pythonheaderfiledir
69+
```
70+
For example:
71+
```
72+
cmake .. -DCMAKE_BUILD_TYPE=Release -DPYTHON_LIBRARY=/opt/homebrew/Cellar/[email protected]/3.9.4/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib -DPYTHON_INCLUDE_DIR=/opt/homebrew/Cellar/[email protected]/3.9.4/Frameworks/Python.framework/Versions/3.9/include/python3.9/
73+
```
6374
## Installing Prebuilt Binaries
6475

6576
Currently you can install the libpoly library (without python support) either using

0 commit comments

Comments
 (0)