<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jul 6, 2017 at 10:00 PM, Michael Jackson <span dir="ltr"><<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have a large list of files that need to have Qt's 'moc' run on them (107 headers). I use all the normal CMake facilities for Qt based projects. I noticed that the generation of the moc files are done serially. Is there a flag or anything that I can use to run the generation in Parallel? I ask because each file takes about 3 seconds to run through moc. The code is heavily C++ templated which I think causes 'moc' to run more slowly. We have other places in the code where 'moc' must run and it does each file in the "blink of an eye".<br>
<br>
Just curious.<br>
<br></blockquote><div><br></div><div>Have you tried removing moc altogether using <a href="https://woboq.com/blog/verdigris-qt-without-moc.html">Verdigris</a>? I'm curious how this would speed up your compilation time.</div><div><br></div><div>Cheers,</div><div>Cristian.</div></div></div></div>