diff options
author | Brad King <brad.king@kitware.com> | 2023-03-18 15:21:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-03-18 15:52:41 (GMT) |
commit | 8ebe3f92b3b270dca340ccceb34a751d213465a2 (patch) | |
tree | 9c20ab94e2cb1bac06ede880296b183992c65db3 /Source/cmNinjaTargetGenerator.cxx | |
parent | f3ca199c9b26988645fe1da661687238c407c24e (diff) | |
download | CMake-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.cxx | 4 |
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") { |