cmvr-es/cmake/msquic/ProcessorCount.cmake
xtkuang 428ee328de feat: complete QUIC edge integration
Vendor MsQuic with build and install support, add DeviceManager status to configurable heartbeats, and report only enabled devices.

Add the local QUIC gateway, protocol coverage, real MsQuic E2E tests, process smoke tests, and updated integration documentation.
2026-07-24 12:35:04 +08:00

17 lines
584 B
CMake

# 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()