diff options
author | Harry Mallon <hjmallon@gmail.com> | 2022-06-13 11:02:13 (GMT) |
---|---|---|
committer | Harry Mallon <hjmallon@gmail.com> | 2022-06-15 18:02:56 (GMT) |
commit | a1a0ae3ad4d1855ff7eb6f1c990b4df7897fb03a (patch) | |
tree | e2f7ab8571953781da4ba54c820fff9b2ad1d732 /Source/cmXCodeScheme.cxx | |
parent | 87273cc9d3b7073a1c175f73b241be16b566b47c (diff) | |
download | CMake-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.cxx | 10 |
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"); |