2013-07-17 22:56:40 +04:00
|
|
|
set(log "${RunCMake_TEST_BINARY_DIR}/CMakeFiles/CMakeError.log")
|
|
|
|
if(EXISTS "${log}")
|
|
|
|
file(READ "${log}" error_log)
|
|
|
|
else()
|
|
|
|
set(error_log "")
|
|
|
|
endif()
|
2013-08-16 23:46:07 +04:00
|
|
|
string(REPLACE "\r\n" "\n" regex "Cannot copy output executable.*
|
2013-07-17 22:56:40 +04:00
|
|
|
to destination specified by COPY_FILE:.*
|
|
|
|
Unable to find the executable at any of:
|
|
|
|
.*\\.missing")
|
2013-08-16 23:46:07 +04:00
|
|
|
if(NOT error_log MATCHES "${regex}")
|
2013-07-17 22:56:40 +04:00
|
|
|
string(REGEX REPLACE "\n" "\n " error_log " ${error_log}")
|
|
|
|
set(RunCMake_TEST_FAILED "Log file:\n ${log}\ndoes not have expected COPY_FILE failure message:\n${error_log}")
|
|
|
|
endif()
|