29 May
2021
29 May
'21
5:18 p.m.
Edward Diener wrote:
I can figure that part of it out, but now the big question:
What do I do to run the tests with CMake and where do I see the output to verify that any changes I make to the CMakeLists.txt in a test directory is correct ?
From the Boost root:
mkdir __build cd __build cmake -DBOOST_ENABLE_CMAKE=1 -DBOOST_INCLUDE_LIBRARIES=preprocessor -DBUILD_TESTING=ON .. cmake --build . ctest --output-on-failure If on Windows, ctest --output-on-failure -C Debug (or Release.) For Preprocessor, the `cmake --build .` line won't do anything, but it's needed for other libraries. E.g. https://github.com/boostorg/assert/blob/6047fd69d39a81c4296ba27ee09f22dd0f76... and https://travis-ci.org/github/boostorg/assert/jobs/771973215