diff options
author | Vincent JARDIN <vjardin@free.fr> | 2024-04-14 10:43:07 +0200 |
---|---|---|
committer | Vincent JARDIN <vjardin@free.fr> | 2024-04-25 09:52:05 +0200 |
commit | e779a5fd7e2ffae72b6ec027b4ba552d6a708330 (patch) | |
tree | 95c19eaf367610635b6a693ac4df4edeaecbeff1 /doc | |
parent | Merge pull request #15794 from chiragshah6/fdev2 (diff) | |
download | frr-e779a5fd7e2ffae72b6ec027b4ba552d6a708330.tar.xz frr-e779a5fd7e2ffae72b6ec027b4ba552d6a708330.zip |
docs: libyang install-prefix since cmake 3.21
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>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/developer/building-libyang.rst | 2 | ||||
-rw-r--r-- | doc/developer/static-linking.rst | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/developer/building-libyang.rst b/doc/developer/building-libyang.rst index a46c79376..8d9876c21 100644 --- a/doc/developer/building-libyang.rst +++ b/doc/developer/building-libyang.rst @@ -41,7 +41,7 @@ DEB packages are available as CI artifacts `here cd libyang git checkout v2.1.128 mkdir build; cd build - cmake -D CMAKE_INSTALL_PREFIX:PATH=/usr \ + cmake --install-prefix /usr \ -D CMAKE_BUILD_TYPE:String="Release" .. make sudo make install diff --git a/doc/developer/static-linking.rst b/doc/developer/static-linking.rst index 5342fbfbf..e9bb9281f 100644 --- a/doc/developer/static-linking.rst +++ b/doc/developer/static-linking.rst @@ -44,7 +44,7 @@ when building libyang statically. The resultant cmake command is:: cmake -DENABLE_STATIC=ON -DENABLE_LYD_PRIV=ON \ - -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + --install-prefix /usr \ -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE \ -DCMAKE_BUILD_TYPE:String="Release" .. |