DEBUGGER_WORKING_DIRECTORY

在 4.0 版被加入.

Sets the local debugger working directory for targets, specifically the process launched by the debugger.

The property value may use generator expressions. This property is initialized by the value of the variable CMAKE_DEBUGGER_WORKING_DIRECTORY if it is set when a target is created.

If the VS_DEBUGGER_WORKING_DIRECTORY property is also set, it will take precedence over DEBUGGER_WORKING_DIRECTORY when using one of the Visual Studio 生成器.

Similarly, if XCODE_SCHEME_WORKING_DIRECTORY is set, it will override DEBUGGER_WORKING_DIRECTORY when using the Xcode generator.