summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/BuildDepends/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-03-11 15:45:46 (GMT)
committerBrad King <brad.king@kitware.com>2020-03-13 13:55:36 (GMT)
commit5932f0be4f36f97fcd3ab61a559379a2a1291371 (patch)
tree41c666f30a0a36bdec6fe5ca0cf08b395e05f506 /Tests/RunCMake/BuildDepends/RunCMakeTest.cmake
parent0d0aa98c84bca35431f4239e45956c9d24967af4 (diff)
downloadCMake-5932f0be4f36f97fcd3ab61a559379a2a1291371.zip
CMake-5932f0be4f36f97fcd3ab61a559379a2a1291371.tar.gz
CMake-5932f0be4f36f97fcd3ab61a559379a2a1291371.tar.bz2
ASM: Fix depfile flags for GNU 'as' tool
The GNU `as --help` shows `--MD <file>` as an option to generate depfiles as needed by Ninja. There is no `-MT <target>` flag but fortunately the generated files automatically account for the `-o <obj>` flag. Issue: #20426
Diffstat (limited to 'Tests/RunCMake/BuildDepends/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/BuildDepends/RunCMakeTest.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/BuildDepends/RunCMakeTest.cmake b/Tests/RunCMake/BuildDepends/RunCMakeTest.cmake
index 14ae243..753417d 100644
--- a/Tests/RunCMake/BuildDepends/RunCMakeTest.cmake
+++ b/Tests/RunCMake/BuildDepends/RunCMakeTest.cmake
@@ -103,3 +103,8 @@ endfunction()
if(RunCMake_GENERATOR STREQUAL "Xcode")
run_ReGeneration(regenerate-project)
endif()
+
+if(CMake_TEST_BuildDepends_GNU_AS)
+ set(ENV{ASM} "${CMake_TEST_BuildDepends_GNU_AS}")
+ run_BuildDepends(GNU-AS)
+endif()