summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/f2py/buildtools/cmake.rst15
1 files changed, 8 insertions, 7 deletions
diff --git a/doc/source/f2py/buildtools/cmake.rst b/doc/source/f2py/buildtools/cmake.rst
index 0c7d4bf63..fbac926f0 100644
--- a/doc/source/f2py/buildtools/cmake.rst
+++ b/doc/source/f2py/buildtools/cmake.rst
@@ -45,13 +45,14 @@ conventions are different and the output library is not automatically prefixed
with the ``cython`` information.
.. code:: bash
- ls .
- # CMakeLists.txt fib1.f
- mkdir build && cd build
- cmake ..
- make
- python -c "import numpy as np; import fibby; a = np.zeros(9); fibby.fib(a); print (a)"
- # [ 0. 1. 1. 2. 3. 5. 8. 13. 21.]
+
+ ls .
+ # CMakeLists.txt fib1.f
+ mkdir build && cd build
+ cmake ..
+ make
+ python -c "import numpy as np; import fibby; a = np.zeros(9); fibby.fib(a); print (a)"
+ # [ 0. 1. 1. 2. 3. 5. 8. 13. 21.]
This is particularly useful where an existing toolchain already exists and
``scikit-build`` or other additional ``python`` dependencies are discouraged.