4dc4018553
In CMakeDetermineCompilerABI we use try_compile with the COPY_FILE option to get a copy of the compiled binary used to detect the ABI information. We already tolerate the case when compilation fails. However, when compilation appears to succeed but does not produce the expected executable the try_compile command immediately reports an error because the COPY_FILE fails. Tolerate COPY_FILE failure without stopping the overall configuration process by using the try_compile COPY_FILE_ERROR option to capture the error message. Log the full error to CMakeError.log and simply report failure to detect the ABI as if compilation had failed. Teach the RunCMake.Configure test to cover this case and verify that the messages show up as expected both in stdout and in CMakeError.log. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
ErrorLogs-result.txt | ||
ErrorLogs-stderr.txt | ||
ErrorLogs-stdout.txt | ||
ErrorLogs.cmake | ||
FailCopyFileABI-check.cmake | ||
FailCopyFileABI-override.cmake | ||
FailCopyFileABI-stdout.txt | ||
FailCopyFileABI.cmake | ||
RunCMakeTest.cmake |