How to avoid race when two
cmake --build are run in parallel, for the same cmake build directory?
For example, if I want to have
cmake --build . --target Alice and
cmake --build . --target Bob in parallel,
and both of the targets depends on
How to ensure
Foo is built only once without race?
Why I need to call two
cmake --build in parallel?
I need to call CMake from another build system, in order to specify dependency.
I am using Linux with ninja-build generator