2017-06-27 13:32 GMT+02:00 Damian Dixon <[email protected]>: > Hi, > > Is there anyway to build tests in parallel when using ctest? >
I'm not sure to understand. Do you want to **build** test in parallel or **run** test in parallel? > > I am generating makefiles on Linux. > Then $ make -j 8 should build in parallel. > > Part of the reason I am asking this is that if I pre-build the test for > some unknown reason ctest rebuilds the source files. > Then you have to verify your test dependencies. ctest should only run the tests not build then unless you call ctest with --build-xxx option. How are you calling ctest? ctest --parallel 8 or ctest -j 8 should run tests in parallel. This works for me (either parallel build or parallel test run) but I'm using ninja. Could you give us more detail on how you run cmake, make and ctest ? -- Eric
-- 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
