On 05/16/2013 04:56 PM, Stephen Kelly wrote:
> I run Qt unit tests like this:
> 
>  qmake && make check
> 
> The make check target runs cmake and ctest. However, this does not take 
> advantage of the ability of CTest to run tests in parallel. Rather than 
> trying to shoehorn in a -j argument via the qmake files, I'd prefer to set a 
> CTEST_TESTFLAGS variable in my shell and be done with it for all projects.
> 
> Is such a thing acceptable? How would it be implemented?

Teach cmCTest::HandleCommandLineArguments to track whether an explicit
-j option was given and if not then after the loop calling it is done
check the environment variable.

-Brad
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to