Some demos based on CMake may search installed packages out of Occlum toolchain's directory, this could cause some building errors sometimes. By setting the $PKG_CONFIG_LIBDIR, we can make CMake searching for packages in Occlum toolchain's directory only.
9 lines
193 B
Bash
Executable File
9 lines
193 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
cd ~
|
|
wget https://github.com/Kitware/CMake/releases/download/v3.15.5/cmake-3.15.5.tar.gz && tar xf cmake-3.15.5.tar.gz
|
|
cd cmake-3.15.5
|
|
./bootstrap
|
|
make -j4
|
|
sudo make install
|