Merge topic 'osx-archs-apple-only' into release-3.18

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

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5118
This commit is contained in:
Brad King
2020-08-11 12:54:09 +00:00
committed by Kitware Robot

View File

@@ -3032,6 +3032,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 =