Boost logo

Boost :

From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2020-03-27 21:52:06


I'm learning about the boostorg/cmake infrastructure offered by Peter.

I picked Boost.Array as a library with simple build setup.
I replaced the existing (hand-rolled?) CMakeLists.txt files
with the generated ones:

b2 tools\boostdep\build
dist\bin\boostdep.exe --cmake array

Then, learning form boostorg/cmake itself how to use it

mkdir __build__ && cd __build__
cmake --build .
ctest --output-on-failure -R boost_array

Visual Studio solution is nicely generated, all expected .vcxproj files too,
but, AFAICT, neither the last two commands nor these do anything:

cmake --build . --config Release
cmake --build . --config Debug

I loaded the Boost.sln in VS 2019 and Build > Build Solution worked.
I also noticed this 'unusual' project-as-target called check.
I'm back in the CLI mode and run:

cmake --build . --target check

this time all the tests build and run.

Interestingly, if I feed the ctest with the build configuration,
then it also builds the tests, and runs them too, of course:

ctest --output-on-failure -R boost_array -C Release
ctest --output-on-failure -R boost_array -C Debug

Is this `cmake --build .` doing nothing specific Boost.CMake?
Is that `check` target supposed to be used explicitly?

Best regards,

Mateusz Loskot,

Boost list run by bdawes at, gregod at, cpdaniel at, john at