diff options
author | Brad King <brad.king@kitware.com> | 2018-08-30 15:22:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-08-30 15:46:19 (GMT) |
commit | 4e1ea02bb86f40d8ba0c247869a508b1da2c84b1 (patch) | |
tree | 74a8c8a9648b856fecbeff429cbedd6de2df311b /Modules/CMakeTestRCCompiler.cmake | |
parent | b7dbb25a0a18187e85e6def956bc5516a3284b90 (diff) | |
download | CMake-4e1ea02bb86f40d8ba0c247869a508b1da2c84b1.zip CMake-4e1ea02bb86f40d8ba0c247869a508b1da2c84b1.tar.gz CMake-4e1ea02bb86f40d8ba0c247869a508b1da2c84b1.tar.bz2 |
CheckIPOSupported: Tolerate backslashes in output of failed checks
Avoid passing the output of our `try_compile` through a macro argument.
Macro invocations re-parse their arguments and so should not be given
arbitrary content that may contain backslashes and such.
Instead pass a simple message. This is also more readable in the case
that the macro generates a message itself. After the macro returns,
report the real output directly to the variable named by our caller.
Also record the output in a log file as other checks do on failure.
Fixes: #18244
Diffstat (limited to 'Modules/CMakeTestRCCompiler.cmake')
0 files changed, 0 insertions, 0 deletions