mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 19:00:54 -06:00
Xcode: Explicitly turn off signing in try_compile projects
Fixes: #18407, #20571, #20688
This commit is contained in:
@@ -3406,6 +3406,12 @@ bool cmGlobalXCodeGenerator::CreateXCodeObjects(
|
||||
std::string symroot = cmStrCat(root->GetCurrentBinaryDirectory(), "/build");
|
||||
buildSettings->AddAttribute("SYMROOT", this->CreateString(symroot));
|
||||
|
||||
// Inside a try_compile project, do not require signing on any platform.
|
||||
if (this->CMakeInstance->GetIsInTryCompile()) {
|
||||
buildSettings->AddAttribute("CODE_SIGNING_ALLOWED",
|
||||
this->CreateString("NO"));
|
||||
}
|
||||
|
||||
for (auto& config : configs) {
|
||||
cmXCodeObject* buildSettingsForCfg = this->CreateFlatClone(buildSettings);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user