TheLartians/ModernCppStarter

`cmake --build build/test` fails

IvanVnucec opened this issue · 1 comments

after running

cmake -S test -B build/test
cmake --build build/test

cmake --build build/test fails with:

[ 37%] Built target fmt
[ 62%] Built target Greeter
[ 75%] Building CXX object CMakeFiles/GreeterTests.dir/source/main.cpp.o
In file included from /home/ivan/Desktop/test-cmake/test/source/main.cpp:3:
/home/ivan/Desktop/test-cmake/build/test/_deps/doctest-src/doctest/doctest.h:4299:47: error: size of array ‘altStackMem’ is not an integral constant-expression
 4299 |         static char             altStackMem[4 * SIGSTKSZ];
      |                                               ^
gmake[2]: *** [CMakeFiles/GreeterTests.dir/build.make:95: CMakeFiles/GreeterTests.dir/source/main.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:201: CMakeFiles/GreeterTests.dir/all] Error 2
gmake: *** [Makefile:160: all] Error 2

I have Ubuntu 21.10 OS.