Re: [CMake] Ctest building with Multiple Processors

2014-09-08 Thread David Cole via CMake
I wrote this blog post a couple years ago claiming one way to run a dashboard on windows: http://cmake.blogspot.com/2012/09/one-way-to-run-dashboard-on-windows.html As with all such things, there are, of course, multiple ways to solve the problem. At the time I wrote it, I trusted Visual Studio

Re: [CMake] Ctest building with Multiple Processors

2014-09-06 Thread Michael Jackson
Is there a blog or other web site that would walk me through setting up a Build Bot on Windows for automated building/testing and submission to CDash? Thanks Mike Jackson On Sep 5, 2014, at 2:40 PM, Bill Hoffman bill.hoff...@kitware.com wrote: On 9/5/2014 11:49 AM, Chuck Atkins wrote:

Re: [CMake] Ctest building with Multiple Processors

2014-09-05 Thread David Cole via CMake
No, they do not behave differently. -j and --parallel are aliases for each other, using either one goes through exactly the same command line argument processing code... HTH, David C. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

Re: [CMake] Ctest building with Multiple Processors

2014-09-05 Thread Michael Jackson
Actually my interpretation of the manual says that the _tests_ will be run in parallel. What I want is the _Build_ to be run in parallel. Thanks Mike Jackson On Sep 4, 2014, at 5:14 PM, Iosif Neitzke iosif.neitzke+cm...@gmail.com wrote: Does ctest -j jobs, or ctest --parallel jobs behave

Re: [CMake] Ctest building with Multiple Processors

2014-09-05 Thread Chuck Atkins
Actually my interpretation of the manual says that the _tests_ will be run in parallel. What I want is the _Build_ to be run in parallel. Indeed that is just the parallel test execution. Parallel build is usually generator specific, controlled through CTEST_BUILD_FLAGS. For example: if

Re: [CMake] Ctest building with Multiple Processors

2014-09-05 Thread Michael Jackson
What generator? All of them of course. I am trying to setup our build bots on several environments including OS X, Linux and Windows. I have ninja built and installed on the Windows machine. I would _prefer_ to use Visual Studio and ninja so that we have a sanity check to make sure both types

Re: [CMake] Ctest building with Multiple Processors

2014-09-05 Thread Chuck Atkins
The easiest option with visual studio is to use the /mp compiler flag by setting it in the CFLAGS and CXXFLAGS environment variables in your ctest script. This will parallelize each target across all CPUs. Target-level parallelism may or may not also happen since that's dependent on your local

Re: [CMake] Ctest building with Multiple Processors

2014-09-05 Thread Bill Hoffman
On 9/5/2014 11:49 AM, Chuck Atkins wrote: Unfortunately on Windows and VS builds there's not really a simple answer. My blog might be of help: http://www.kitware.com/blog/home/post/434 -Bill -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

Re: [CMake] Ctest building with Multiple Processors

2014-09-04 Thread Iosif Neitzke
Does ctest -j jobs, or ctest --parallel jobs behave differently? http://www.cmake.org/cmake/help/v3.0/manual/ctest.1.html On Wed, Sep 3, 2014 at 2:31 PM, Michael Jackson mike.jack...@bluequartz.net wrote: I am exploring CTest/CDash with out project and I was trying to figure out how to have

[CMake] Ctest building with Multiple Processors

2014-09-03 Thread Michael Jackson
I am exploring CTest/CDash with out project and I was trying to figure out how to have CTest use all my cores for builds. So far no luck with some snippets from Google. So far I have the following in a file called CTestConfig.cmake at the top level of my project. set(CTEST_PROJECT_NAME