Xcode: Use DEBUGGER_WORKING_DIRECTORY as a fallback for scheme work dir

This also means when XCODE_SCHEME_WORKING_DIRECTORY is
set and a Xcode generator is used, that property will be used when
writing the debugger field in the file API replies.

Fixes: #26909
This commit is contained in:
Craig Scott
2025-05-02 17:05:16 +10:00
committed by Brad King
parent 0f1b9ef32a
commit 149ee3b4bc
6 changed files with 27 additions and 5 deletions
@@ -13,3 +13,6 @@ created.
If the :prop_tgt:`VS_DEBUGGER_WORKING_DIRECTORY` property is also set, it will
take precedence over ``DEBUGGER_WORKING_DIRECTORY`` when using one of the
Visual Studio generators.
Similarly, if :prop_tgt:`XCODE_SCHEME_WORKING_DIRECTORY` is set, it will
override ``DEBUGGER_WORKING_DIRECTORY`` when using the Xcode generator.
@@ -13,3 +13,5 @@ when a target is created.
Please refer to the :prop_tgt:`XCODE_GENERATE_SCHEME` target property
documentation to see all Xcode schema related properties.
See also :prop_tgt:`DEBUGGER_WORKING_DIRECTORY`.
+4
View File
@@ -289,3 +289,7 @@ Changes made since CMake 4.0.0 include the following.
This restores support for using LLVM/Clang on macOS without manually
setting ``CMAKE_OSX_SYSROOT``, which was broken by CMake 4.0.0's
removal of a default value.
* The :prop_tgt:`DEBUGGER_WORKING_DIRECTORY` target property is now
used by the :generator:`Xcode` generator as a fallback for the
:prop_tgt:`XCODE_SCHEME_WORKING_DIRECTORY` target property.