CMAKE_TRY_COMPILE_CONFIGURATION
From Get docs
Cmake/docs/3.21/variable/cmake try compile configuration
CMAKE_TRY_COMPILE_CONFIGURATION
Build configuration used for try_compile() and try_run() projects.
Projects built by try_compile() and try_run() are built synchronously during the CMake configuration step. Therefore a specific build configuration must be chosen even if the generated build system supports multiple configurations.
© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/variable/CMAKE_TRY_COMPILE_CONFIGURATION.html