chiark / gitweb /
Document passing full paths to cmake
authorJulien Schueller <schueller@phimeca.com>
Mon, 3 Sep 2018 14:59:58 +0000 (16:59 +0200)
committerJulien Schueller <schueller@phimeca.com>
Mon, 3 Sep 2018 15:07:29 +0000 (17:07 +0200)
doc/docs/NLopt_Installation.md

index ab68b3e5a7ccc16dda50920e091eb7c8fc61324c..8d42250e4eb694e8dcfb9d330e1e6ff7a6a086a6 100644 (file)
@@ -114,10 +114,10 @@ Python plugins
 
 If [Python](https://en.wikipedia.org/wiki/Python_(programming_language)) is installed on your machine, and you configured NLopt as a shared library (see above), then NLopt will automatically compile and install a Python `nlopt` module. You also need [NumPy](https://en.wikipedia.org/wiki/NumPy) to be installed, as NLopt's Python interface uses NumPy array types.
 
-To specify a particular version or location of Python, use the `PYTHON_EXECUTABLE` variable to set the name of the `python` executable:
+To specify a particular version or location of Python, use the `PYTHON_EXECUTABLE` variable to set the full path to the `python` executable:
 
 ```sh
-cmake -DPYTHON_EXECUTABLE=python ..
+cmake -DPYTHON_EXECUTABLE=/usr/bin/python ..
 ```
 
 GNU Guile plugins
@@ -130,7 +130,7 @@ Note that many GNU/Linux distributions come with only the Guile program and shar
 If you want to specify a particular version or a nonstandard location of Guile, you should use the `GUILE_CONFIG_EXECUTABLE` and `GUILE_EXECUTABLE` variables to specify the locations of the `guile-config` and `guile` programs:
 
 ```sh
-cmake -DGUILE_EXECUTABLE=guileĀ GUILE_CONFIG_EXECUTABLE=guile-config ..
+cmake -DGUILE_EXECUTABLE=/usr/bin/guileĀ GUILE_CONFIG_EXECUTABLE=/usr/bin/guile-config ..
 ```
 
 (The `cmake` script uses these programs to determine the compiler flags and installation directories for Guile plugins.)