README: improve instructions on building from source

Closes #10894.
This commit is contained in:
David Adam 2024-12-11 08:04:00 +08:00
parent 1b33e4b9a6
commit 6ae887383c

View file

@ -137,14 +137,19 @@ Additionally, running the full test suite requires Python 3, tmux, and the pexpe
Building from source with CMake Building from source with CMake
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rather than building from source, consider using a packaged build for your platform. Using the
steps below makes fish difficult to uninstall or upgrade. Release packages are available from the
links above, and up-to-date `development builds of fish are available for many platforms
<https://github.com/fish-shell/fish-shell/wiki/Development-builds>`__
To install into ``/usr/local``, run: To install into ``/usr/local``, run:
.. code:: bash .. code:: bash
mkdir build; cd build mkdir build; cd build
cmake .. cmake ..
make cmake --build .
sudo make install sudo cmake --install .
The install directory can be changed using the The install directory can be changed using the
``-DCMAKE_INSTALL_PREFIX`` parameter for ``cmake``. ``-DCMAKE_INSTALL_PREFIX`` parameter for ``cmake``.