From 7e4655ba5564e98060098aeec750fdc191d3509f Mon Sep 17 00:00:00 2001 From: scivision Date: Fri, 17 May 2024 18:09:22 -0400 Subject: [PATCH] remove ninja job pool. Let user define. --- cmake/mumps.cmake | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/cmake/mumps.cmake b/cmake/mumps.cmake index 2a5da9e..410d226 100644 --- a/cmake/mumps.cmake +++ b/cmake/mumps.cmake @@ -1,7 +1,3 @@ -set_property(GLOBAL PROPERTY JOB_POOLS Njobs=3) -cmake_host_system_information(RESULT _memfree QUERY AVAILABLE_PHYSICAL_MEMORY) -# for low memory systems - set(_mi ${mumps_SOURCE_DIR}/include/) set(_s ${mumps_SOURCE_DIR}/src/) @@ -226,9 +222,7 @@ endif() set(CINT_SRC ${_s}mumps_c.c) add_library(${a}mumps ${CINT_SRC} ${SRC} ${SRC_OTHER}) -if(_memfree LESS 1000) # < 1GB RAM free - set_property(TARGET ${a}mumps PROPERTY JOB_POOL_COMPILE Njobs) -endif() + target_compile_definitions(${a}mumps PRIVATE MUMPS_ARITH=MUMPS_ARITH_${a} ${ORDERING_DEFS}