Skip to content

Commit 8b9d137

Browse files
committed
update CMake options instructions
1 parent 40c95e6 commit 8b9d137

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

INSTALL.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,14 @@ There are two CMake options that can be given to enable or disable OpenMP and CU
6161
|:--|:--|:--|
6262
| PYAPR_USE_OPENMP | Enable multithreading via OpenMP | ON |
6363
| PYAPR_USE_CUDA | Build available CUDA functionality | OFF |
64+
| PYAPR_PREFER_EXTERNAL_LIBAPR | Use an installed version of LibAPR (if found) rather than building it from submodules | OFF |
6465

65-
When building via the setup.py script, these options can be set via the environment variable `CMAKE_COMMON_VARIABLES`. For example,
66+
When building via the setup.py script, these options can be set via the environment variable `EXTRA_CMAKE_ARGS`. For example,
6667
```
67-
CMAKE_COMMON_VARIABLES="-DPYAPR_USE_OPENMP=OFF -DPYAPR_USE_CUDA=OFF" python setup.py install
68+
EXTRA_CMAKE_ARGS="-DPYAPR_USE_OPENMP=OFF -DPYAPR_USE_CUDA=OFF" python setup.py install
6869
```
69-
should install the package with both OpenMP and CUDA disabled.
70+
will install the package with both OpenMP and CUDA disabled. If building from an installed version of LibAPR in a non-standard
71+
location, help CMake find it, e.g., by passing `-DCMAKE_PREFIX_PATH=/path/to/APR`.
7072

7173
### OpenMP support on OSX
7274

0 commit comments

Comments
 (0)