Hi

 I Implemented support for parallel processes based on bash xor powershell.
If you have long running processes in CMake you might want to check it out
and try it at http://thetoeb.de/2014/12/16/parallel-processes-cmake/  resp.
https://github.com/toeb/oo-cmake


the gist ist:
```
# these to processes run concurrently
start_process(COMMAND ping cmake.org)
ans(handle1)
start_process(COMMAND ping github.org)
ans(handle2)

set(handles ${handle1} ${handle2})
## waits until all processes are terminated
process_wait_all(${handles})

## prints the standard output stream of both processes to the console
foreach(handle ${handles}
 process_stdout(${handle})
 ans(stdout)

 message(STATUS "${stdout})
endforeach()
```

Tell me if you like it (or if you don't want me to shamelessly plug my Blog
posts on this mailing list) :)


Cheers!

Tobias
-- 

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:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to