diff options
author | Brad King <brad.king@kitware.com> | 2020-08-11 12:54:09 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-08-11 12:54:15 (GMT) |
commit | 9a27e803d4721d9bb2aea5a5e2dfc16f2dc78944 (patch) | |
tree | 22d5d52ad19f8c0e539f6d8775b789ef433229c0 /Source/cmGeneratorTarget.cxx | |
parent | 2ccc09b3e86377acd10f55c661df8eecbd2a9ff7 (diff) | |
parent | 70ce1ad64a04a244bb1c03753da0752c61fc3a37 (diff) | |
download | CMake-9a27e803d4721d9bb2aea5a5e2dfc16f2dc78944.zip CMake-9a27e803d4721d9bb2aea5a5e2dfc16f2dc78944.tar.gz CMake-9a27e803d4721d9bb2aea5a5e2dfc16f2dc78944.tar.bz2 |
Merge topic 'osx-archs-apple-only'
70ce1ad64a PCH: Avoid Apple-specific architecture flags on other platforms
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5118
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 06c32fe..889ad7c 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/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 = |