diff options
author | Brad King <brad.king@kitware.com> | 2021-05-28 17:45:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-05-28 17:45:04 (GMT) |
commit | 4c33b4e3b10109288d59d7cd17853f814754b024 (patch) | |
tree | a379c917e1fe9e678ad2b2a6a183569d1c91c66d /Tests/RunCMake/Ninja/CustomCommandDepfile-check.cmake | |
parent | 59d9fa713158610b6183b214841d0f272ee6f900 (diff) | |
parent | dd6fd62615ef816f5cbdbd8cd5f827a5cc360464 (diff) | |
download | CMake-4c33b4e3b10109288d59d7cd17853f814754b024.zip CMake-4c33b4e3b10109288d59d7cd17853f814754b024.tar.gz CMake-4c33b4e3b10109288d59d7cd17853f814754b024.tar.bz2 |
Merge branch 'master' into ci-msvc-14.29-16.10
Diffstat (limited to 'Tests/RunCMake/Ninja/CustomCommandDepfile-check.cmake')
-rw-r--r-- | Tests/RunCMake/Ninja/CustomCommandDepfile-check.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Tests/RunCMake/Ninja/CustomCommandDepfile-check.cmake b/Tests/RunCMake/Ninja/CustomCommandDepfile-check.cmake index 189de64..51f4f52 100644 --- a/Tests/RunCMake/Ninja/CustomCommandDepfile-check.cmake +++ b/Tests/RunCMake/Ninja/CustomCommandDepfile-check.cmake @@ -1,5 +1,10 @@ set(log "${RunCMake_BINARY_DIR}/CustomCommandDepfile-build/build.ninja") file(READ "${log}" build_file) + +set(RunCMake_TEST_FAILED) if(NOT "${build_file}" MATCHES "depfile = test\\.d") - set(RunCMake_TEST_FAILED "Log file:\n ${log}\ndoes not have expected line: depfile = test.d") + list(APPEND RunCMake_TEST_FAILED "Log file:\n ${log}\ndoes not have expected line: depfile = test.d") +endif() +if(NOT "${build_file}" MATCHES "depfile = test_Debug\\.d") + list(APPEND RunCMake_TEST_FAILED "\nLog file:\n ${log}\ndoes not have expected line: depfile = test_Debug.d") endif() |