mirror of
https://github.com/ttroy50/cmake-examples.git
synced 2025-12-18 12:14:36 +03:00
20 lines
388 B
Bash
Executable File
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
|