Tests: Improve RunCMake.file REAL_PATH error message formatting

This commit is contained in:
Brad King
2026-02-03 10:52:20 -05:00
parent 6db4676164
commit ccae74f1db

View File

@@ -88,6 +88,10 @@ if (WIN32)
file(REAL_PATH "${low}" out)
if(NOT "${out}" PATH_EQUAL "${in}")
message(SEND_ERROR "real path is \"${out}\", should be \"${in}\"")
message(SEND_ERROR
"real path is:\n"
" \"${out}\"\n"
"but should be:\n"
" \"${in}\"")
endif()
endif()