diff options
author | Brad King <brad.king@kitware.com> | 2023-03-14 21:11:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-03-15 14:18:41 (GMT) |
commit | 43e973eba2681788c7acf7a4fcdf261bcf6a622a (patch) | |
tree | d46cab93c35d8b3b92613fb919c5448c6881dbd6 /Source/cmMakefileTargetGenerator.cxx | |
parent | 93afe804ce4949823dc4521d555811720afd7783 (diff) | |
download | CMake-43e973eba2681788c7acf7a4fcdf261bcf6a622a.zip CMake-43e973eba2681788c7acf7a4fcdf261bcf6a622a.tar.gz CMake-43e973eba2681788c7acf7a4fcdf261bcf6a622a.tar.bz2 |
cmGeneratorTarget: Pass language to GetAppleArchs when possible
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index a7e5eca..e6f8cdd 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -542,7 +542,7 @@ void cmMakefileTargetGenerator::WriteTargetLanguageFlags() *this->FlagFileStream << language << "_INCLUDES = " << includes << "\n\n"; std::vector<std::string> architectures = - this->GeneratorTarget->GetAppleArchs(this->GetConfigName()); + this->GeneratorTarget->GetAppleArchs(this->GetConfigName(), language); architectures.emplace_back(); for (const std::string& arch : architectures) { @@ -672,7 +672,7 @@ void cmMakefileTargetGenerator::WriteObjectRuleFiles( // Add precompile headers dependencies std::vector<std::string> architectures = - this->GeneratorTarget->GetAppleArchs(config); + this->GeneratorTarget->GetAppleArchs(config, lang); if (architectures.empty()) { architectures.emplace_back(); } |