您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

30 行
499B

  1. #!/bin/bash
  2. set -ex
  3. # Conan
  4. apt-get install -y python3-pip
  5. pip3 install -U conan
  6. conan profile new default --detect
  7. # Workaround for Clang 11 support (#173)
  8. cp -f script/settings.yml ~/.conan/
  9. if [[ "${CXX}" == clang* ]]
  10. then
  11. export CXXFLAGS="-stdlib=libc++"
  12. else
  13. conan profile update settings.compiler.libcxx=libstdc++11 default
  14. fi
  15. mkdir build && cd build
  16. conan install \
  17. -g cmake_find_package \
  18. -g cmake_paths \
  19. ..
  20. cmake -DCMAKE_BUILD_TYPE=Release ..
  21. make
  22. make unittest