Files
cmake-examples/07-package-management/D-conan/i-basic/run_test.sh
2019-05-05 18:57:49 +01:00

20 lines
388 B
Bash
Executable File

#!/bin/bash
conan_bin=`which conan`
if [ -z $conan_bin ]; then
exit 0
fi
conan profile show default || {
conan profile new default --detect
}
conan profile update settings.compiler.libcxx=libstdc++11 default
echo "correct version of cmake"
mkdir -p build && cd build && conan install .. && cmake .. && make
if [ $? -ne 0 ]; then
echo "Error running example"
exit 1
fi