|
|
|
|
|
|
|
|
# Conan |
|
|
# Conan |
|
|
apt-get install -y python3-pip |
|
|
apt-get install -y python3-pip |
|
|
pip3 install conan |
|
|
pip3 install conan |
|
|
|
|
|
|
|
|
|
|
|
conan profile new default --detect |
|
|
|
|
|
|
|
|
if [[ "${CXX}" == clang* ]] |
|
|
if [[ "${CXX}" == clang* ]] |
|
|
then |
|
|
then |
|
|
export CXXFLAGS="-stdlib=libc++" |
|
|
export CXXFLAGS="-stdlib=libc++" |
|
|
CONAN_STDLIB=libc++ |
|
|
|
|
|
else |
|
|
else |
|
|
CONAN_STDLIB=libstdc++11 |
|
|
|
|
|
|
|
|
conan profile update settings.compiler.libcxx=libstdc++11 default |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
mkdir build && cd build |
|
|
mkdir build && cd build |
|
|
|
|
|
|
|
|
conan install \ |
|
|
conan install \ |
|
|
-s compiler.libcxx=${CONAN_STDLIB} \ |
|
|
|
|
|
-g cmake_find_package \ |
|
|
-g cmake_find_package \ |
|
|
-g cmake_paths \ |
|
|
-g cmake_paths \ |
|
|
.. |
|
|
.. |