<div dir="ltr"><div>Hello!</div><div><br></div><div>I'm sure many developers have faced issues with manual dependency handling in the nginx build system. I've tried several workarounds which were semi-acceptable for personal use, but definitely not something that you would offer other people to use.<br></div><div><br></div><div>Then I thought that it would be easy to add objs/Makefile -> CMakeList.txt converted, because makefile is strictly-formatted, but what if we add a primitive CMakeLists.txt generator to auto/make?</div><div><br></div><div>I've made a quick and dirty prototype and it was quite successful (for *nix environment as it relies on sed-ing compiler/linker flags).</div><div><br></div><div>I'm attaching a small patch of that proof-of-concept attempt (based on v 1.17.10). And I just want to ask if the community is interested in having some kind of cmake support. The advantages for developers are:</div><div>- automatic dependency handling</div><div>- easier integration with clang-based tools (cmake can generate compile_commands.json on its own rather that using tools such as <a href="https://github.com/rizsotto/Bear">https://github.com/rizsotto/Bear</a>)</div><div>- cmake can target not only makefiles (for example Visual Studio, if anyone uses it)</div><div>- it's easier to use C++ with cmake as it inherently has an ability to use different set of compiler flags for C and C++ compilers<br></div><div><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Regards,<br>Dmitry<br></div></div></div>