summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/NinjaMultiConfig/CustomCommandDepfile-check.cmake
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-02-07 19:18:54 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2020-02-07 19:18:54 (GMT)
commit67102d3252f744987762ae19c4bfffeb11cdd46e (patch)
tree90714a5acbd052779b36cf56940ebf2032068bbf /Tests/RunCMake/NinjaMultiConfig/CustomCommandDepfile-check.cmake
parentad17c37d345cd143a131e4b5f26196e0e749ec0e (diff)
downloadCMake-67102d3252f744987762ae19c4bfffeb11cdd46e.zip
CMake-67102d3252f744987762ae19c4bfffeb11cdd46e.tar.gz
CMake-67102d3252f744987762ae19c4bfffeb11cdd46e.tar.bz2
Ninja Multi-Config: Add support for DEPFILE option in add_custom_command()
And give other generators a path forward to add support in the future.
Diffstat (limited to 'Tests/RunCMake/NinjaMultiConfig/CustomCommandDepfile-check.cmake')
-rw-r--r--Tests/RunCMake/NinjaMultiConfig/CustomCommandDepfile-check.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/NinjaMultiConfig/CustomCommandDepfile-check.cmake b/Tests/RunCMake/NinjaMultiConfig/CustomCommandDepfile-check.cmake
new file mode 100644
index 0000000..c595b10
--- /dev/null
+++ b/Tests/RunCMake/NinjaMultiConfig/CustomCommandDepfile-check.cmake
@@ -0,0 +1,5 @@
+set(log "${RunCMake_BINARY_DIR}/CustomCommandDepfile-build/CMakeFiles/impl-Debug.ninja")
+file(READ "${log}" build_file)
+if(NOT "${build_file}" MATCHES "depfile = test\\.d")
+ set(RunCMake_TEST_FAILED "Log file:\n ${log}\ndoes not have expected line: depfile = test.d")
+endif()