Files
intel-linux-sgx/external/CppMicroServices/install_cmake.sh
Li, Xun d10cabebb5 Linux 2.5 Open Source Gold Release
Added new APIs in sgx_uae_service.h and sgx_ukey_exchange.h to support ECDSA quote based remote attestation.
  The set of legacy APIs supports EPID only and the set of new APIs supports ECDSA quotes.
Enhanced Edger8r with structure deep-copy feature.
Fixed bugs.

Signed-off-by: Li, Xun <xun.li@intel.com>
2019-04-02 13:26:58 +08:00

23 lines
590 B
Bash
Executable File

#!/bin/sh
set -e
if [ ! -d "$HOME/cache" ]; then
mkdir $HOME/cache;
fi
CTEST_EXEC="$HOME/cache/bin/ctest"
# check to see if CMake is cached
if [[ ! -f "$CTEST_EXEC" || ! "$($CTEST_EXEC --version)" =~ "3.2.3" ]]; then
wget --no-check-certificate https://cmake.org/files/v3.2/cmake-3.2.3.tar.gz -O /tmp/cmake.tar.gz;
tar -xzvf /tmp/cmake.tar.gz -C /tmp;
cd /tmp/cmake-3.2.3;
./configure --prefix=$HOME/cache;
make -j2;
make install;
else
echo "Using cached bin dir: $HOME/cache/bin";
ls -la $HOME/cache/bin;
echo "Using cached CMake installation:";
cmake -version;
fi