forked from bartvdbraak/blender
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:
parent
681a7d724b
commit
7fd3b07da1
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user