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

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. set -ex
  3. # Conan
  4. apt-get install -y python3-pip
  5. pip3 install conan
  6. if [[ "${CXX}" == clang* ]]
  7. then
  8. export CXXFLAGS="-stdlib=libc++"
  9. CONAN_STDLIB=libc++
  10. else
  11. CONAN_STDLIB=libstdc++11
  12. fi
  13. mkdir build && cd build
  14. conan install -s compiler.libcxx=${CONAN_STDLIB} ..
  15. cmake ..
  16. make
  17. make unittest