From e779a5fd7e2ffae72b6ec027b4ba552d6a708330 Mon Sep 17 00:00:00 2001 From: Vincent JARDIN Date: Sun, 14 Apr 2024 10:43:07 +0200 Subject: [PATCH 1/3] docs: libyang install-prefix since cmake 3.21 use the new recommendation from cmake: --install-prefix 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 --- doc/developer/building-libyang.rst | 2 +- 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 a46c79376c..8d9876c21a 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 5342fbfbf6..e9bb9281f8 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" .. From b9161936afee4d89301f71bc8e09c07f7b8b45b9 Mon Sep 17 00:00:00 2001 From: Vincent JARDIN Date: Sun, 14 Apr 2024 10:46:34 +0200 Subject: [PATCH 2/3] docs: sysrepo install-prefix since cmake 3.21 use the new recommendation from cmake: --install-prefix 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 --- doc/developer/northbound/plugins-sysrepo.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/developer/northbound/plugins-sysrepo.rst b/doc/developer/northbound/plugins-sysrepo.rst index 0cfdb825e5..f4df68ce3c 100644 --- a/doc/developer/northbound/plugins-sysrepo.rst +++ b/doc/developer/northbound/plugins-sysrepo.rst @@ -32,7 +32,7 @@ libyang cd libyang git checkout v2.1.148 mkdir build; cd build - cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + cmake --install-prefix /usr \ -DCMAKE_BUILD_TYPE:String="Release" .. make sudo make install @@ -51,7 +51,7 @@ Sysrepo cd sysrepo/ git checkout v2.2.150 mkdir build; cd build - cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + cmake --install-prefix /usr \ -DCMAKE_BUILD_TYPE:String="Release" .. make sudo make install From f30275d05bc62f2ce4d9afbd03495229614e217f Mon Sep 17 00:00:00 2001 From: Vincent JARDIN Date: Sun, 14 Apr 2024 10:49:26 +0200 Subject: [PATCH 3/3] docs: libs install-prefix since cmake 3.21 use the new recommendation from cmake: --install-prefix 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 --- doc/developer/cross-compiling.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/developer/cross-compiling.rst b/doc/developer/cross-compiling.rst index af99262c4f..c503487441 100644 --- a/doc/developer/cross-compiling.rst +++ b/doc/developer/cross-compiling.rst @@ -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