These are chat archives for inbilla/CMake
Thank you @packadal. I've got a tiny progress. I can generate with fastbuild now. Compilation does not work. I've fixed escaping of ',",$ and use of / instead of \ as path separator. Next on my list would be to fix the thing about running commands via a shell. That is a must. The problem is that cmake always escapes the commands for use with a shell. For instance if I have -Dfoo="bar" it would make it as -Dfoo=\"bar\". That would be plain wrong if executed directly as fastbuild would normally do. I think for now we shall always run via a shell - at least to start with. I have not figured out how to do that yet.
Back to the testing, I am not sure how this works. Most of the tests (80%) run cmake (executable) or ctest . When that is run the generator is not specified. The default generator is platform dependent. I do not think building cmake with fastbuild would make it default in anyway. So the idea of building cmake with fastbuild and then run the tests is weird to me. As fast as I can see, default generator for linux/mac os gnumake, and on windows VS (some version). I guess I can try to add some debug to check what I am saying is true... And of course, I will try your suggestion @packadal.
Hey @packadal. I see now how this works. Tests generated in the build directory would set fastbuild as generator. I tried your approach. Unfortunately it does not work. Most tests are skipped with output containing lines like this:
27: Test command: NOT_AVAILABLE
Test not available without configuration. (Missing "-C <config>"?)
1/1 Test #27: CommandLineTest ..................*Not Run 0.00 sec