How do I disable "Perfoming Test CXX_HAS..."

We’re in a controlled build environment (our tools are fixed and do not change) and these tests really slow down the configure phase. (especially when we’re very far away from our FlexLM server since each one fires off a build/link). For example, when I’m at the office directly next to our server, a configure phase can last a minute or two. When I’m at home via vpn, I’ve seen it last up to 20 minutes. (may also have been driven by floating licenses being consumed elsewhere)

Is there a way we can disable these tests? They don’t provide us any service since our tools would not change out from underneath us.

FWIW, I’ve tried -DCMAKE_CXX_COMPILER_WORKS=1 but that doesn’t seem to stop these functionality tests.

Are these tests in CMakeLists.txt or those internal to CMake itself?

cmake_minimum_required(VERSION 3.19)
project(b LANGUAGES CXX)

That makes at least 3 calls to the C++ compiler via execute_process().

In any case, do you see anything taking particularly long in

cmake -B build --profiling-output=perf.json --profiling-format=google-trace

To view the profile data, type in Chrome or Edge address bar about:tracing and Load perf.json.