approvals / ApprovalTests.cpp

Native ApprovalTests for C++ on Linux, Mac and Windows
https://approvaltestscpp.readthedocs.io/en/latest/
Apache License 2.0
318 stars 51 forks source link

Update ApprovalTests.cpp.StarterProject to work with fixed catch #include lines #85

Closed claremacrae closed 4 years ago

claremacrae commented 4 years ago

The changes for #62 need to be reflected in the Starter Project, so that it will work with the next release of this project...

Currently, if I kick off a ApprovalTests.cpp release, the compilation check of the StarterProject gives this:

[ 20%] Building CXX object tests/CMakeFiles/StarterProject.tests.dir/main.cpp.o
In file included from /Users/clare/Documents/develop/ApprovalTests/ApprovalTests.cpp.StarterProject/tests/main.cpp:2:
In file included from /Users/clare/Documents/develop/ApprovalTests/ApprovalTests.cpp.StarterProject/lib/ApprovalTests.hpp:1:
/Users/clare/Documents/develop/ApprovalTests/ApprovalTests.cpp.StarterProject/lib/ApprovalTests.v.X.X.X.hpp:2997:10: fatal error: 'catch2/catch.hpp' file not found
#include <catch2/catch.hpp>
         ^~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [tests/CMakeFiles/StarterProject.tests.dir/main.cpp.o] Error 1
make[1]: *** [tests/CMakeFiles/StarterProject.tests.dir/all] Error 2
make: *** [all] Error 2

This will mean rearranging the files in ApprovalTests.cpp.StarterProject/lib - and fixing the CMake and Visual Studio builds.