TheLartians / ModernCppStarter

🚀 Kick-start your C++! A template for modern C++ projects using CMake, CI, code coverage, clang-format, reproducible dependency management and much more.
https://thelartians.github.io/ModernCppStarter
The Unlicense
4.33k stars 381 forks source link

`cmake --build build/test` fails #148

Closed IvanVnucec closed 2 years ago

IvanVnucec commented 2 years ago

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.

ClausKlein commented 2 years ago

update to this version should be done! https://github.com/doctest/doctest/releases/tag/v2.4.8 and by the way use too: https://github.com/fmtlib/fmt/releases/tag/8.1.1