summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-08-10 15:20:53 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-08-10 15:23:14 (GMT)
commitb6da87c13f89efe461826f0bde28e7731c5f30f4 (patch)
tree99e310b4da4598753002634c10bb875e4476776e
parentcb1f2cf093808d84cd8ee76e1d77138aefd94b6f (diff)
parent97d581b25d8b6d1fb0d43190a58898b04629914a (diff)
downloadCMake-b6da87c13f89efe461826f0bde28e7731c5f30f4.zip
CMake-b6da87c13f89efe461826f0bde28e7731c5f30f4.tar.gz
CMake-b6da87c13f89efe461826f0bde28e7731c5f30f4.tar.bz2
Merge topic 'xcode-try_compile-no-sign-backport' into release-3.18
97d581b25d Xcode: Explicitly turn off signing in try_compile projects Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5117
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index f0737e8..b28395a 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -3158,6 +3158,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);