From 6b343c1f5ecd1b410b931d8f49b75cace82bbe98 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Thu, 18 Jun 2020 20:10:25 -0400 Subject: [PATCH] cmake: sitl_gazebo build limit to 2 cores (-j2) --- platforms/posix/cmake/sitl_target.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/platforms/posix/cmake/sitl_target.cmake b/platforms/posix/cmake/sitl_target.cmake index e68a9359d8..937a43ae9c 100644 --- a/platforms/posix/cmake/sitl_target.cmake +++ b/platforms/posix/cmake/sitl_target.cmake @@ -44,6 +44,7 @@ ExternalProject_Add(sitl_gazebo USES_TERMINAL_BUILD true EXCLUDE_FROM_ALL true BUILD_ALWAYS 1 + BUILD_COMMAND ${CMAKE_COMMAND} --build -- -j2 ) ExternalProject_Add(mavsdk_tests