Browse Source

Merge topic 'osx-archs-apple-only'

70ce1ad64a PCH: Avoid Apple-specific architecture flags on other platforms

Acked-by: Kitware Robot <[email protected]>
Merge-request: !5118
Brad King 5 years ago
parent
commit
9a27e803d4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Source/cmGeneratorTarget.cxx

+ 3 - 0
Source/cmGeneratorTarget.cxx

@@ -3124,6 +3124,9 @@ std::string cmGeneratorTarget::GetCompilePDBDirectory(
 void cmGeneratorTarget::GetAppleArchs(const std::string& config,
                                       std::vector<std::string>& archVec) const
 {
+  if (!this->Makefile->IsOn("APPLE")) {
+    return;
+  }
   cmProp archs = nullptr;
   if (!config.empty()) {
     std::string defVarName =