Print out the try_compile output for tests expected to fail.
This way, ctest -V shows that it fails for the expected reason. Change-Id: I97589d4e90d889ea0b10dbd6192526712dbfdd8e Reviewed-by: Alexander Neundorf <neundorf@kde.org> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
This commit is contained in:
parent
d5afe6e7e4
commit
4fc6bc4804
@ -59,7 +59,9 @@ macro(expect_fail _dir)
|
||||
try_compile(Result \${CMAKE_CURRENT_BINARY_DIR}/${_dir}
|
||||
\${CMAKE_CURRENT_SOURCE_DIR}/${_dir}
|
||||
${_dir}
|
||||
OUTPUT_VARIABLE Out
|
||||
)
|
||||
message(\"\${Out}\")
|
||||
if (Result)
|
||||
message(SEND_ERROR \"Succeeded build which should fail\")
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user