Merge pull request #15737 from vjardin/cmake_install_prefix

cmake install prefix
This commit is contained in:
Donatas Abraitis 2024-04-26 23:29:29 +03:00 committed by GitHub
commit 524e08c4d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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" ..