1
1
mirror of https://github.com/trafi/maybe-result-cpp synced 2024-11-22 02:32:02 +01:00

Set C compiler for cmake.

This commit is contained in:
Nerijus Arlauskas 2016-07-08 15:33:58 +03:00
parent 849259f1bd
commit d2319dcf96

@ -14,7 +14,7 @@ matrix:
- g++-4.9
- cmake
- cmake-data
env: COMPILER=g++-4.9
env: CXX_COMPILER=g++-4.9 C_COMPILER=g++-4.9
- compiler: gcc
addons:
apt:
@ -25,7 +25,7 @@ matrix:
- g++-5
- cmake
- cmake-data
env: COMPILER=g++-5
env: CXX_COMPILER=g++-5 C_COMPILER=g++-5
- compiler: clang
addons:
apt:
@ -37,7 +37,7 @@ matrix:
- clang-3.6
- cmake
- cmake-data
env: COMPILER=clang++-3.6
env: CXX_COMPILER=clang++-3.6 C_COMPILER=clang++-3.6
- compiler: clang
addons:
apt:
@ -49,7 +49,7 @@ matrix:
- clang-3.7
- cmake
- cmake-data
env: COMPILER=clang++-3.7
env: CXX_COMPILER=clang++-3.7 C_COMPILER=clang++-3.7
before_install:
- sudo apt-get update -qq
@ -57,4 +57,4 @@ before_install:
script:
- mkdir build
- cd build
- cmake -DCMAKE_CXX_COMPILER=$COMPILER .. && make -j4 tests && ./tests/tests
- cmake -DCMAKE_CXX_COMPILER=$CXX_COMPILER -DCMAKE_C_COMPILER=$C_COMPILER .. && make -j4 tests && ./tests/tests