summaryrefslogtreecommitdiffstats
path: root/Source/cmXCodeScheme.cxx
diff options
context:
space:
mode:
authorHarry Mallon <hjmallon@gmail.com>2022-06-13 11:02:13 (GMT)
committerHarry Mallon <hjmallon@gmail.com>2022-06-15 18:02:56 (GMT)
commita1a0ae3ad4d1855ff7eb6f1c990b4df7897fb03a (patch)
treee2f7ab8571953781da4ba54c820fff9b2ad1d732 /Source/cmXCodeScheme.cxx
parent87273cc9d3b7073a1c175f73b241be16b566b47c (diff)
downloadCMake-a1a0ae3ad4d1855ff7eb6f1c990b4df7897fb03a.zip
CMake-a1a0ae3ad4d1855ff7eb6f1c990b4df7897fb03a.tar.gz
CMake-a1a0ae3ad4d1855ff7eb6f1c990b4df7897fb03a.tar.bz2
Xcode: Add Xcode SCHEME control for 'Launch' control
Diffstat (limited to 'Source/cmXCodeScheme.cxx')
-rw-r--r--Source/cmXCodeScheme.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/cmXCodeScheme.cxx b/Source/cmXCodeScheme.cxx
index adc500a..a62015f 100644
--- a/Source/cmXCodeScheme.cxx
+++ b/Source/cmXCodeScheme.cxx
@@ -147,7 +147,15 @@ void cmXCodeScheme::WriteLaunchAction(cmXMLWriter& xout,
"Xcode.DebuggerFoundation.Debugger.LLDB");
xout.Attribute("selectedLauncherIdentifier",
"Xcode.DebuggerFoundation.Launcher.LLDB");
- xout.Attribute("launchStyle", "0");
+ {
+ cmValue launchMode =
+ this->Target->GetTarget()->GetProperty("XCODE_SCHEME_LAUNCH_MODE");
+ std::string value = "0"; // == 'AUTO'
+ if (launchMode && *launchMode == "WAIT") {
+ value = "1";
+ }
+ xout.Attribute("launchStyle", value);
+ }
WriteCustomWorkingDirectory(xout, configuration);
xout.Attribute("ignoresPersistentStateOnLaunch", "NO");