Commit c56e9457 authored by Olivier Stasse's avatar Olivier Stasse
Browse files

[travis] Fix cmake input parameters to avoid LD_VERSION failure.

parent ee8d760c
......@@ -33,13 +33,33 @@ install_dependency()
# Install dependencies
# Detect Ubuntu release
if [ -f /etc/lsb-release ]; then
(. /etc/lsb-release;
echo "#!/bin/bash" > /tmp/local.bash
echo "export DISTRIB_CODENAME="$DISTRIB_CODENAME >> /tmp/local.bash;
echo "export DISTRIB_RELEASE="$DISTRIB_RELEASE >> /tmp/local.bash;
echo "export DISTRIB_DESCRIPTION=\""$DISTRIB_DESCRIPTION\" >> /tmp/local.bash;)
source /tmp/local.bash
fi
# Compile and run tests
cd "$build_dir"
cmake "$root_dir" -DCMAKE_INSTALL_PREFIX="$install_dir" \
-DCMAKE_CXX_FLAGS="--coverage" \
-DCMAKE_EXE_LINKER_FLAGS="--coverage" \
-DCMAKE_MODULE_LINKER_FLAGS="--coverage" \
-DCMAKE_INSTALL_PREFIX:STRING="$install_dir"
if [ $DISTRIB_RELEASE == "14.04" ]; then
cmake "$root_dir" -DCMAKE_INSTALL_PREFIX="$install_dir" \
-DCMAKE_CXX_FLAGS="--coverage" \
-DCMAKE_EXE_LINKER_FLAGS="--coverage" \
-DCMAKE_MODULE_LINKER_FLAGS="--coverage" \
-DCMAKE_INSTALL_PREFIX:STRING="$install_dir"
fi
if [ $DISTRIB_RELEASE == "12.04" ]; then
cmake "$root_dir" -DCMAKE_INSTALL_PREFIX="$install_dir" \
-DCMAKE_CXX_FLAGS="--coverage" \
-DCMAKE_EXE_LINKER_FLAGS="--coverage" \
-DCMAKE_INSTALL_PREFIX:STRING="$install_dir"
fi
make soth
make test
make install
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment