summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/BuildDepends
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-06-08 16:45:20 (GMT)
committerBrad King <brad.king@kitware.com>2021-06-09 14:09:58 (GMT)
commit526e2ef71c5b797818bbf232e21d0152a3938197 (patch)
treecbf166ad88496f7d0b070e7bc1f38bba073f4356 /Tests/RunCMake/BuildDepends
parent794ad78abb8da517e59e25ea38f5c1edced1cf46 (diff)
downloadCMake-526e2ef71c5b797818bbf232e21d0152a3938197.zip
CMake-526e2ef71c5b797818bbf232e21d0152a3938197.tar.gz
CMake-526e2ef71c5b797818bbf232e21d0152a3938197.tar.bz2
VS: Add support for add_custom_command DEPFILE
Transform the depfile into MSBuild `AdditionalInputs` content. Add MSBuild Targets to update `AdditionalInputs` and the `.tlog` files for future builds without actually modifying the `.vcxproj` file. Fixes: #20286
Diffstat (limited to 'Tests/RunCMake/BuildDepends')
-rw-r--r--Tests/RunCMake/BuildDepends/RunCMakeTest.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/RunCMake/BuildDepends/RunCMakeTest.cmake b/Tests/RunCMake/BuildDepends/RunCMakeTest.cmake
index 0a80580..f8c20c2 100644
--- a/Tests/RunCMake/BuildDepends/RunCMakeTest.cmake
+++ b/Tests/RunCMake/BuildDepends/RunCMakeTest.cmake
@@ -172,7 +172,8 @@ if (RunCMake_GENERATOR MATCHES "Makefiles")
run_cmake(CustomCommandDependencies-BadArgs)
endif()
-if(RunCMake_GENERATOR MATCHES "Make|Ninja|Xcode")
+if(RunCMake_GENERATOR MATCHES "Make|Ninja|Visual Studio|Xcode" AND
+ NOT RunCMake_GENERATOR MATCHES "Visual Studio (9|10)( |$)")
unset(run_BuildDepends_skip_step_3)
run_BuildDepends(CustomCommandDepfile)
set(run_BuildDepends_skip_step_3 1)