Skip to content
Snippets Groups Projects
Select Git revision
  • 9d0c2840aa6cf7e656d669f156f5476293c61a95
  • main default protected
  • f-jdk-update
  • f-overview
  • f-linkahead-rename
  • dev protected
  • f-remote-path
  • f-full-ak-uploadFile
  • f-pipeline-test
  • f-cxx-include
  • cxxwrap-bugreport
  • v0.0.5
  • v0.0.4
  • v0.0.3
  • v0.0.2
15 results

install_cpplib.sh

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    install_cpplib.sh 609 B
    #!/bin/bash
    
    git clone https://gitlab.indiscale.com/caosdb/src/caosdb-cpplib.git
    cd caosdb-cpplib
    # check if there is a crooesponding cpp branch. Use the default branch
    # if there isn't.
    if (git show-ref --verify --quiet refs/heads/$CI_COMMIT_REF_NAME) ; then
        echo "git checkout $CI_COMMIT_REF_NAME"
        git checkout $CI_COMMIT_REF_NAME
    else
        echo "git checkout $CPP_DEFAULT_BRANCH"
        git checkout $CPP_DEFAULT_BRANCH
    fi
    git submodule update --init --recursive
    mkdir build
    cd build
    conan install .. --build=missing -s "compiler.libcxx=libstdc++11"
    cmake ..
    cmake --build .
    cmake --install .
    cd ../..