Skip to content

Commit

Permalink
Fix math expression in CMakeLists.txt (#5721)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf authored Mar 16, 2021
1 parent 45ba3a5 commit 13880cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
set_property(GLOBAL PROPERTY REPORT_UNDEFINED_PROPERTIES)

cmake_host_system_information(RESULT _totalmem QUERY TOTAL_PHYSICAL_MEMORY)
set(ANALYSIS_COMPILE_POOL _totalmem/8000 CACHE STRING "How many parallel analysis compilation jobs")
math(EXPR _total_analysis_jobs ${_totalmem}/8000)
set(ANALYSIS_COMPILE_POOL ${_total_analysis_jobs} CACHE STRING "How many parallel analysis compilation jobs")
set_property(GLOBAL PROPERTY JOB_POOLS analysis=${ANALYSIS_COMPILE_POOL})

include(O2BuildSanityChecks)
Expand Down

0 comments on commit 13880cf

Please sign in to comment.