I have a project which is using protobuf and a custom command.
However I get a compile error, because my custom_command is not executed in the correct order.
The problem occurs only with the ninja code generator. With make the code compiles fine.
Steps to reproduce:
cmake -S . -GNinja -B build cmake --build build
../Main.cpp:2:10: fatal error: some_header.h: No such file or directory 2 | #include "some_header.h"
For unknown reason I cannot upload my test case code in the forum…
So I uploaded it to a third party site. It is a minimal test case.
Can anybody tell me how I can get my code working also with ninja?