summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaTargetGenerator.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2019-03-12 19:19:33 (GMT)
committerBrad King <brad.king@kitware.com>2020-11-17 18:17:04 (GMT)
commitf3eed2c49d38ef95261f687c8c0c549990d37501 (patch)
tree60791eb3ac77a68f9643442596a3bd296aebec87 /Source/cmNinjaTargetGenerator.cxx
parenta02c4ccabc1736712fc90b12c63e4997ccf34284 (diff)
downloadCMake-f3eed2c49d38ef95261f687c8c0c549990d37501.zip
CMake-f3eed2c49d38ef95261f687c8c0c549990d37501.tar.gz
CMake-f3eed2c49d38ef95261f687c8c0c549990d37501.tar.bz2
cmGlobalNinjaGenerator: use P1689 dependency file format for Fortran
The module dependency specification format described in the C++ JTC1/SC22/WG21 paper [1] is also suitable for use by Fortran. [1] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p1689r2.html
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaTargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx
index f2bec8c..17b7efc 100644
--- a/Source/cmNinjaTargetGenerator.cxx
+++ b/Source/cmNinjaTargetGenerator.cxx
@@ -532,7 +532,7 @@ std::string GetScanCommand(const std::string& cmakeCmd, const std::string& tdi,
const std::string& ddiFile)
{
return cmStrCat(cmakeCmd, " -E cmake_ninja_depends --tdi=", tdi,
- " --lang=", lang, " --pp=", ppFile,
+ " --lang=", lang, " --src=$in", " --pp=", ppFile,
" --dep=$DEP_FILE --obj=$OBJ_FILE --ddi=", ddiFile);
}