On Freitag, 5. Januar 2018 13:00:30 CET clin...@elemtech.com wrote: > Cool. I'd like to have parallel automoc and uic. > > How about this 4th option? > Don't use threads. A single thread is able to spawn multiple processes, and > wait on multiple processes, and react when 1 or more processes change > state. I'm probably not familiar enough with kwsysProcess to know if this > approach will work, but it might be easier and simpler(?) than making it > thread safe. > > Clint >
AFAIK there are two interfaces inside CMake that allow to start a process, kwsysProcess and libuv. kwsysProcess allows to start a single process and wait for it to finish. I thinks it's also possible to start multiple parallel processes. But there's no interface to select/poll a number of parallel processes. So the 4th option would boil down to use libuv for process management. Sebastian -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake-developers