Files
CMake/Tests/RunCMake/cmake_host_system_information/MacOS.cmake
T
Brad King 58aa659bf8 Tests/RunCMake/cmake_host_system_information: Cover macOS Malloc Debugging env
On macOS, `sw_vers` may print to `stderr` based on environment variables
like `MallocGuardEdges=1`.  Add a test to verify that we do not capture
that as part of the information it prints to `stdout`.

Issue: #26466
2024-11-23 15:17:36 -05:00

4 lines
161 B
CMake

set(ENV{MallocGuardEdges} 1) # test tolerating sw_vers stderr
cmake_host_system_information(RESULT os_name QUERY OS_NAME)
message(STATUS "os_name='${os_name}'")