mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 11:49:55 -06:00
PCH: Avoid Apple-specific architecture flags on other platforms
Since commit f593b354da (PCH: Add support for multi architecture iOS
projects, 2020-04-02, v3.18.0-rc1~414^2) the `OSX_ARCHITECTURES` target
property (and corresponding `CMAKE_OSX_ARCHITECTURES` variable) affects
flags on non-Apple platforms by accident. Add a missing condition to
avoid this.
Fixes: #21072
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user