You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 line
336B

  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 --build missing -s compiler.libcxx=${CONAN_STDLIB} ..
  15. cmake ..
  16. make
  17. make unittest