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
This commit is contained in:
Ankit Meel 2021-03-30 16:42:19 +05:30
parent 681a7d724b
commit 7fd3b07da1
1 changed files with 2 additions and 1 deletions

View File

@ -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")