diff options
author | Ankit Meel <ankitjmeel@gmail.com> | 2021-03-30 14:12:19 +0300 |
---|---|---|
committer | Ankit Meel <ankitjmeel@gmail.com> | 2021-03-30 14:12:19 +0300 |
commit | 7fd3b07da1b8e4a30dcf0c1fc74b503322735749 (patch) | |
tree | 67e8c589606273487e5cad27eb64c9db6f51e64c /build_files/build_environment/cmake | |
parent | 681a7d724b1ab7df811adb951239ff35c9dbaa1f (diff) |
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
Diffstat (limited to 'build_files/build_environment/cmake')
-rw-r--r-- | build_files/build_environment/cmake/options.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
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") |