fix for cmake ExternalProject_Add #267
Annotations
2 errors and 1 warning
Build
FAILED: tests/CMakeFiles/test-basic.dir/basic.cc.o
/home/runner/work/cmdr-cxx/cmdr-cxx/ccache /usr/bin/g++-10 -DCMDR_ENABLE_ASSERTIONS=1 -DCMDR_ENABLE_PRECONDITION_CHECKS=1 -DCMDR_ENABLE_WRAPPER=1 -DCMDR_TEST_THREAD_POOL_DBGOUT=1 -DCMDR_UNIT_TEST=1 -I/home/runner/work/cmdr-cxx/cmdr-cxx/build/generated -I/home/runner/work/cmdr-cxx/cmdr-cxx -I/home/runner/work/cmdr-cxx/cmdr-cxx/libs/cmdr11/include -g -std=c++2a -fPIE -Wall -Wextra -pedantic -Werror -Wno-unknown-pragmas -D_DEBUG -DDEBUG=1 -Wshadow -DCMDR_CXX11_UNIT_TEST=1 -MD -MT tests/CMakeFiles/test-basic.dir/basic.cc.o -MF tests/CMakeFiles/test-basic.dir/basic.cc.o.d -o tests/CMakeFiles/test-basic.dir/basic.cc.o -c /home/runner/work/cmdr-cxx/cmdr-cxx/tests/basic.cc
In file included from ../libs/cmdr11/include/cmdr11/cmdr_app.hh:20,
from ../libs/cmdr11/include/cmdr11/cmdr11.hh:98,
from ../libs/cmdr11/include/cmdr-cxx.hh:8,
from ../tests/basic.cc:11:
../libs/cmdr11/include/cmdr11/cmdr_opts.hh: In lambda function:
../libs/cmdr11/include/cmdr11/cmdr_opts.hh:25:14: error: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20 [-Werror=deprecated]
25 | return [=](cmd &c) {
| ^
../libs/cmdr11/include/cmdr11/cmdr_opts.hh:25:14: note: add explicit ‘this’ or ‘*this’ capture
../libs/cmdr11/include/cmdr11/cmdr_opts.hh: In lambda function:
../libs/cmdr11/include/cmdr11/cmdr_opts.hh:128:14: error: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20 [-Werror=deprecated]
128 | return [=](cmd &c) {
| ^
../libs/cmdr11/include/cmdr11/cmdr_opts.hh:128:14: note: add explicit ‘this’ or ‘*this’ capture
In file included from ../libs/cmdr11/include/cmdr11/cmdr11.hh:105,
from ../libs/cmdr11/include/cmdr-cxx.hh:8,
from ../tests/basic.cc:11:
../libs/cmdr11/include/cmdr11/cmdr_app_inl.h: In lambda function:
../libs/cmdr11/include/cmdr11/cmdr_app_inl.h:154:63: error: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20 [-Werror=deprecated]
154 | _internal_actions.emplace(opt::Action::RequestHelpScreen, [=](opt::types::parsing_context &pc, int, char *[]) -> int {
| ^
../libs/cmdr11/include/cmdr11/cmdr_app_inl.h:154:63: note: add explicit ‘this’ or ‘*this’ capture
../libs/cmdr11/include/cmdr11/cmdr_app_inl.h: In lambda function:
../libs/cmdr11/include/cmdr11/cmdr_app_inl.h:158:67: error: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20 [-Werror=deprecated]
158 | _internal_actions.emplace(opt::Action::RequestVersionsScreen, [=](opt::types::parsing_context &, int, char *[]) -> int {
| ^
../libs/cmdr11/include/cmdr11/cmdr_app_inl.h:158:67: note: add explicit ‘this’ or ‘*this’ capture
In file included from ../libs/cmdr11/include/cmdr11/cmdr11.hh:105,
from ../libs/cmdr11/include/cmdr-cxx.hh:8,
from ../tests/basic.cc:11:
../libs/cmdr11/include/cmdr11/cmdr_app_inl.h: In lambda function:
../libs/cmdr11/include/cmdr11/cmdr_app_inl.h:193:31: error: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20 [-Werror=deprecated]
193 | [=](opt::types::parsing_context &pc, int argc, char *argv[]) -> int {
| ^
../libs/cmdr11/include/cmdr11/cmdr_app_inl.h:193:31: note: add explicit ‘this’ or ‘*this’ capture
../libs/cmdr11/include/cmdr11/cmdr_app_inl.h: In lambda function:
../libs/cmdr11/include/cmdr11/cmdr_app_inl.h:203:15: error: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20 [-Werror=deprecated]
203 | walk_args([=](opt::arg &a) {
| ^
../libs/cmdr11/include/cmdr11/cmdr_app_inl.h:203:15: note: add explicit ‘this’ or ‘*this’ capture
In file included from ../libs/cmdr11/include/cmdr11/cmdr11.hh:108,
from ../libs/cmdr11/include/cmdr-cxx.hh:8,
from ../tests/basic.cc:11:
../libs/cmdr11/include/cmdr11/cmdr_impl.hh: In lambda function
|
Build
Process completed with exit code 1.
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Loading