summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-07-17 12:51:25 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-07-17 12:52:13 (GMT)
commit5b419f795c502e62e286fada40aa15f520ad3c3f (patch)
treebae7fc772f6ac3710b0a684a9c89e83a977ca8df /Source
parent3442e8c55131b8ecb67d090adbf5402b4f098627 (diff)
parentd3a64c4e3f8489c05e39240dd17963f2ab0fb283 (diff)
downloadCMake-5b419f795c502e62e286fada40aa15f520ad3c3f.zip
CMake-5b419f795c502e62e286fada40aa15f520ad3c3f.tar.gz
CMake-5b419f795c502e62e286fada40aa15f520ad3c3f.tar.bz2
Merge topic 'xcode-try_compile-no-sign'
d3a64c4e3f Xcode: Explicitly turn off signing in try_compile projects Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5022
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 2d47d2c..360807c 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -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);