Skip to content

Commit

Permalink
fix compilation instruction format
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed May 24, 2020
1 parent 5d34da9 commit 18215a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ Method 2: Compile with cmake (3.3 or later)
Please open a terminal, and run the below shall commands

.. code-block:: shell
cd zmat/src
rm -rf build
mkdir build && cd build
Expand All @@ -231,16 +232,18 @@ Please open a terminal, and run the below shall commands
make
if MATLAB was not installed in a standard path, you may change ``cmake ../`` to

.. code-block:: shell
cmake Matlab_ROOT_DIR=/path/to/matlab/root ../
by default, this will first compile ``libzmat.a`` and then create the ``.mex`` file
that is statically linked with ``libzmat.a``. If one prefers to create a dynamic
library ``libzmat.so`` and then a dynamically linked ``.mex`` file, this can
be done by

if the output
.. code-block:: shell
cmake Matlab_ROOT_DIR=/path/to/matlab/root -DSTATIC_LIB=off ../
Expand Down

0 comments on commit 18215a2

Please sign in to comment.