I renamed a .cpp file outside C::B, then I've rebuild the project and the build succeeded.
Here is part of the log:
WARNING: Can't read file's timestamp: /home/obfuscated/projects/myproj/myfile.cpp
Is it possible to make the build fail in this kind of situations?
I can do it, if the patch will be accepted.
At the moment it is a warning (not showing in the build messages by the way),
I want it to be error, because if you hit "Rebuild All" the build will fail with:
g++: .obj/tests/debug/src/myfile.o: There is no such file or directory
If it is an error, C::B would detect the problem (the source file is missing) earlier.
Because probably you only have the object file. And then it wouldn't be an error.
This is another case and should be handled differently -> you add the object file to the project or in the Linker settings (the former looks more like the correct way).