Skip to content

Commit

Permalink
docs: libs install-prefix since cmake 3.21
Browse files Browse the repository at this point in the history
use the new recommendation from cmake:
  --install-prefix <directory>
     New in version 3.21.

     Specify the installation directory, used by the
     CMAKE_INSTALL_PREFIX variable. Must be an
     absolute path.

reminder: the default path is /usr/local instead of /usr

Signed-off-by: Vincent Jardin <vjardin@free.fr>
  • Loading branch information
vjardin committed Apr 14, 2024
1 parent 5ae1b91 commit 0f4dbca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/developer/cross-compiling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ be built and installed generally like:
CC=${HOST_ARCH}-gcc \
CXX=${HOST_ARCH}-g++ \
cmake \
-DCMAKE_INSTALL_PREFIX=/usr/${HOST_ARCH} \
--install-prefix /usr/${HOST_ARCH} \
..
make
make install
Expand Down

0 comments on commit 0f4dbca

Please sign in to comment.