[Bf-blender-cvs] [7fd3b07da1b] master: Build Environment: set MAKE_THREADS as per the CPU

Ankit Meel noreply at git.blender.org
Tue Mar 30 13:15:02 CEST 2021


Commit: 7fd3b07da1b8e4a30dcf0c1fc74b503322735749
Author: Ankit Meel
Date:   Tue Mar 30 16:42:19 2021 +0530
Branches: master
https://developer.blender.org/rB7fd3b07da1b8e4a30dcf0c1fc74b503322735749

Build Environment: set MAKE_THREADS as per the CPU

It is a better default.

Reviewed By: sebbas, sybren
Differential Revision: https://developer.blender.org/D10652

===================================================================

M	build_files/build_environment/cmake/options.cmake

===================================================================

diff --git a/build_files/build_environment/cmake/options.cmake b/build_files/build_environment/cmake/options.cmake
index 5091a5d9496..15ceb693ae0 100644
--- a/build_files/build_environment/cmake/options.cmake
+++ b/build_files/build_environment/cmake/options.cmake
@@ -21,7 +21,8 @@ if(WIN32)
 endif()
 option(WITH_WEBP "Enable building of oiio with webp support" OFF)
 option(WITH_BOOST_PYTHON "Enable building of boost with python support" OFF)
-set(MAKE_THREADS 1 CACHE STRING "Number of threads to run make with")
+cmake_host_system_information(RESULT NUM_CORES QUERY NUMBER_OF_LOGICAL_CORES)
+set(MAKE_THREADS ${NUM_CORES} CACHE STRING "Number of threads to run make with")
 
 if(NOT BUILD_MODE)
   set(BUILD_MODE "Release")



More information about the Bf-blender-cvs mailing list