summaryrefslogtreecommitdiffstats
path: root/Source/cmXCodeScheme.cxx
diff options
context:
space:
mode:
authorHarry Mallon <hjmallon@gmail.com>2019-03-11 11:51:26 (GMT)
committerHarry Mallon <hjmallon@gmail.com>2019-03-11 13:30:35 (GMT)
commit40be48f8907e37e5bd1ce94d6b28f3bb4727db70 (patch)
tree2caa3ca6bf583a182c1ac639ed47f419f45165a7 /Source/cmXCodeScheme.cxx
parent7a30d72728b9334e18205dc65cf4419efdcfba34 (diff)
downloadCMake-40be48f8907e37e5bd1ce94d6b28f3bb4727db70.zip
CMake-40be48f8907e37e5bd1ce94d6b28f3bb4727db70.tar.gz
CMake-40be48f8907e37e5bd1ce94d6b28f3bb4727db70.tar.bz2
XCode: Add scheme option XCODE_SCHEME_DEBUG_AS_ROOT
Diffstat (limited to 'Source/cmXCodeScheme.cxx')
-rw-r--r--Source/cmXCodeScheme.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmXCodeScheme.cxx b/Source/cmXCodeScheme.cxx
index 1b16198..c33bb7e 100644
--- a/Source/cmXCodeScheme.cxx
+++ b/Source/cmXCodeScheme.cxx
@@ -177,6 +177,11 @@ void cmXCodeScheme::WriteLaunchAction(cmXMLWriter& xout,
WriteLaunchActionAttribute(xout, "stopOnEveryMainThreadCheckerIssue",
"XCODE_SCHEME_MAIN_THREAD_CHECKER_STOP");
+ if (this->Target->GetTarget()->GetPropertyAsBool(
+ "XCODE_SCHEME_DEBUG_AS_ROOT")) {
+ xout.Attribute("debugAsWhichUser", "root");
+ }
+
// Diagnostics tab end
if (IsExecutable(this->Target)) {