diff options
author | Brad King <brad.king@kitware.com> | 2021-06-08 16:45:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-06-09 14:09:58 (GMT) |
commit | 526e2ef71c5b797818bbf232e21d0152a3938197 (patch) | |
tree | cbf166ad88496f7d0b070e7bc1f38bba073f4356 /Tests/RunCMake/BuildDepends | |
parent | 794ad78abb8da517e59e25ea38f5c1edced1cf46 (diff) | |
download | CMake-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.cmake | 3 |
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) |