Commit 7a4086a5 authored by Emmanuel Promayon's avatar Emmanuel Promayon

FIXED (tentative) reduce number of proc for parallel testing

VM seems overwelmed
parent dda0e6dd
......@@ -115,7 +115,9 @@ endif()
# parallelize ci scripts if possible
include(ProcessorCount)
ProcessorCount(NUMBER_OF_PROC)
if(NOT NUMBER_OF_PROC EQUAL 0)
# remove some to avoid processor overload
MATH(EXPR NUMBER_OF_PROC "${NUMBER_OF_PROC}-2")
if(NUMBER_OF_PROC GREATER 0)
if(COMPILER MATCHES "GCC" OR COMPILER MATCHES "Ninja")
set(CTEST_BUILD_FLAGS -j${NUMBER_OF_PROC})
elseif(COMPILER MATCHES "MSVC.*")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment