# MsQuic's QuicTLS custom build asks CMake's ProcessorCount module for a # nested `make -jN` value. Route that query through the build script's # --jobs setting so the dependency build cannot silently oversubscribe the # host. if(NOT DEFINED CMVR_MSQUIC_PROCESSOR_COUNT OR NOT CMVR_MSQUIC_PROCESSOR_COUNT MATCHES "^[1-9][0-9]*$") message(FATAL_ERROR "CMVR_MSQUIC_PROCESSOR_COUNT must be a positive integer") endif() function(ProcessorCount result_variable) set("${result_variable}" "${CMVR_MSQUIC_PROCESSOR_COUNT}" PARENT_SCOPE) endfunction()