summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-03-18 15:21:08 (GMT)
committerBrad King <brad.king@kitware.com>2023-03-18 15:52:41 (GMT)
commit8ebe3f92b3b270dca340ccceb34a751d213465a2 (patch)
tree9c20ab94e2cb1bac06ede880296b183992c65db3 /Source/cmNinjaTargetGenerator.cxx
parentf3ca199c9b26988645fe1da661687238c407c24e (diff)
downloadCMake-8ebe3f92b3b270dca340ccceb34a751d213465a2.zip
CMake-8ebe3f92b3b270dca340ccceb34a751d213465a2.tar.gz
CMake-8ebe3f92b3b270dca340ccceb34a751d213465a2.tar.bz2
cmGlobalNinjaGenerator: Detect GNU-like command-line for dyndep collator
This will help the collator choose flags and path styles for modmap files.
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaTargetGenerator.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx
index 13782b0..5abf609 100644
--- a/Source/cmNinjaTargetGenerator.cxx
+++ b/Source/cmNinjaTargetGenerator.cxx
@@ -1634,6 +1634,10 @@ void cmNinjaTargetGenerator::WriteTargetDependInfo(std::string const& lang,
tdi["language"] = lang;
tdi["compiler-id"] = this->Makefile->GetSafeDefinition(
cmStrCat("CMAKE_", lang, "_COMPILER_ID"));
+ tdi["compiler-simulate-id"] = this->Makefile->GetSafeDefinition(
+ cmStrCat("CMAKE_", lang, "_SIMULATE_ID"));
+ tdi["compiler-frontend-variant"] = this->Makefile->GetSafeDefinition(
+ cmStrCat("CMAKE_", lang, "_COMPILER_FRONTEND_VARIANT"));
std::string mod_dir;
if (lang == "Fortran") {