Skip to content
Snippets Groups Projects
Commit 4beeae32 authored by Cyril Moineau's avatar Cyril Moineau
Browse files

Add warning as error when compiling c++ pipelines.

parent 9e2dce6e
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ build:ubuntu_cpp:
script:
- cd $BUILD_DIR
# WERROR=OFF until https://gitlab.eclipse.org/eclipse/aidge/aidge/-/issues/137 is not closed
- cmake -DCMAKE_BUILD_TYPE=Release -DWERROR=OFF -DCOVERAGE=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DPYBIND=0 ..
- cmake -DCMAKE_BUILD_TYPE=Release -DWERROR=ON -DCOVERAGE=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DPYBIND=0 ..
- make -j4 all install
......@@ -64,7 +64,7 @@ build:ubuntu_cpp:g++:
- apt-get install -y g++-$Gplusplus_VERSION
- export CXX=/usr/bin/g++-$Gplusplus_VERSION
# WERROR=OFF until https://gitlab.eclipse.org/eclipse/aidge/aidge/-/issues/137 is not closed
- cmake -DCMAKE_BUILD_TYPE=Release -DWERROR=OFF -DCOVERAGE=OFF -DPYBIND=0 -DCMAKE_EXPORT_COMPILE_COMMANDS=1 ..
- cmake -DCMAKE_BUILD_TYPE=Release -DWERROR=ON -DCOVERAGE=OFF -DPYBIND=0 -DCMAKE_EXPORT_COMPILE_COMMANDS=1 ..
- make -j4 all install
build:ubuntu_cpp:clang:
......@@ -82,7 +82,7 @@ build:ubuntu_cpp:clang:
- cd $BUILD_DIR
- apt-get install -y clang-$CLANG_VERSION
# WERROR=OFF until https://gitlab.eclipse.org/eclipse/aidge/aidge/-/issues/137 is not closed
- cmake -DCMAKE_CXX_COMPILER=/usr/bin/clang++-$CLANG_VERSION -DCMAKE_BUILD_TYPE=Release -DWERROR=OFF -DCOVERAGE=OFF -DPYBIND=0 -DCMAKE_EXPORT_COMPILE_COMMANDS=1 ..
- cmake -DCMAKE_CXX_COMPILER=/usr/bin/clang++-$CLANG_VERSION -DCMAKE_BUILD_TYPE=Release -DWERROR=ON -DCOVERAGE=OFF -DPYBIND=0 -DCMAKE_EXPORT_COMPILE_COMMANDS=1 ..
- make -j4 all install
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment