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 | |
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')
-rw-r--r-- | Source/cmTarget.cxx | 1 | ||||
-rw-r--r-- | Source/cmXCodeScheme.cxx | 10 |
2 files changed, 10 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 83dc1c2..ffbb456 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -610,6 +610,7 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type, initProp("XCODE_SCHEME_MALLOC_SCRIBBLE"); initProp("XCODE_SCHEME_MALLOC_GUARD_EDGES"); initProp("XCODE_SCHEME_GUARD_MALLOC"); + initProp("XCODE_SCHEME_LAUNCH_MODE"); initProp("XCODE_SCHEME_ZOMBIE_OBJECTS"); initProp("XCODE_SCHEME_MALLOC_STACK"); initProp("XCODE_SCHEME_DYNAMIC_LINKER_API_USAGE"); 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"); |