mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 19:00:54 -06:00
VS: Add variables to initialize debugger-related properties
Add variables to initialize target properties `VS_DEBUGGER_COMMAND`, `VS_DEBUGGER_COMMAND_ARGUMENTS`, `VS_DEBUGGER_ENVIRONMENT`, and `VS_DEBUGGER_WORKING_DIRECTORY`.
This commit is contained in:
@@ -535,6 +535,10 @@ Variables that Control the Build
|
||||
/variable/CMAKE_USE_RELATIVE_PATHS
|
||||
/variable/CMAKE_VERIFY_INTERFACE_HEADER_SETS
|
||||
/variable/CMAKE_VISIBILITY_INLINES_HIDDEN
|
||||
/variable/CMAKE_VS_DEBUGGER_COMMAND
|
||||
/variable/CMAKE_VS_DEBUGGER_COMMAND_ARGUMENTS
|
||||
/variable/CMAKE_VS_DEBUGGER_ENVIRONMENT
|
||||
/variable/CMAKE_VS_DEBUGGER_WORKING_DIRECTORY
|
||||
/variable/CMAKE_VS_GLOBALS
|
||||
/variable/CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD
|
||||
/variable/CMAKE_VS_INCLUDE_PACKAGE_TO_DEFAULT_BUILD
|
||||
|
||||
@@ -7,7 +7,9 @@ Sets the local debugger command for Visual Studio C++ targets.
|
||||
The property value may use
|
||||
:manual:`generator expressions <cmake-generator-expressions(7)>`.
|
||||
This is defined in ``<LocalDebuggerCommand>`` in the Visual Studio
|
||||
project file.
|
||||
project file. This property is initialized by the value of the variable
|
||||
:variable:`CMAKE_VS_DEBUGGER_COMMAND` if it is set when a target is
|
||||
created.
|
||||
|
||||
This property only works for Visual Studio 11 2012 and above;
|
||||
it is ignored on other generators.
|
||||
|
||||
@@ -7,7 +7,9 @@ Sets the local debugger command line arguments for Visual Studio C++ targets.
|
||||
The property value may use
|
||||
:manual:`generator expressions <cmake-generator-expressions(7)>`.
|
||||
This is defined in ``<LocalDebuggerCommandArguments>`` in the Visual Studio
|
||||
project file.
|
||||
project file. This property is initialized by the value of the variable
|
||||
:variable:`CMAKE_VS_DEBUGGER_COMMAND_ARGUMENTS` if it is set when a target is
|
||||
created.
|
||||
|
||||
This property only works for Visual Studio 11 2012 and above;
|
||||
it is ignored on other generators.
|
||||
|
||||
@@ -7,7 +7,9 @@ Sets the local debugger environment for Visual Studio C++ targets.
|
||||
The property value may use
|
||||
:manual:`generator expressions <cmake-generator-expressions(7)>`.
|
||||
This is defined in ``<LocalDebuggerEnvironment>`` in the Visual Studio
|
||||
project file.
|
||||
project file. This property is initialized by the value of the variable
|
||||
:variable:`CMAKE_VS_DEBUGGER_ENVIRONMENT` if it is set when a target is
|
||||
created.
|
||||
|
||||
This property only works for Visual Studio 11 2012 and above;
|
||||
it is ignored on other generators.
|
||||
|
||||
@@ -7,7 +7,9 @@ Sets the local debugger working directory for Visual Studio C++ targets.
|
||||
The property value may use
|
||||
:manual:`generator expressions <cmake-generator-expressions(7)>`.
|
||||
This is defined in ``<LocalDebuggerWorkingDirectory>`` in the Visual Studio
|
||||
project file.
|
||||
project file. This property is initialized by the value of the variable
|
||||
:variable:`CMAKE_VS_DEBUGGER_WORKING_DIRECTORY` if it is set when a target is
|
||||
created.
|
||||
|
||||
This property only works for Visual Studio 11 2012 and above;
|
||||
it is ignored on other generators.
|
||||
|
||||
8
Help/release/dev/vs-debugger-init.rst
Normal file
8
Help/release/dev/vs-debugger-init.rst
Normal file
@@ -0,0 +1,8 @@
|
||||
vs-debugger-init
|
||||
----------------
|
||||
|
||||
* Variables :variable:`CMAKE_VS_DEBUGGER_COMMAND`,
|
||||
:variable:`CMAKE_VS_DEBUGGER_COMMAND_ARGUMENTS`,
|
||||
:variable:`CMAKE_VS_DEBUGGER_ENVIRONMENT`, and
|
||||
:variable:`CMAKE_VS_DEBUGGER_WORKING_DIRECTORY` were added to initialize
|
||||
corresponding target properties.
|
||||
8
Help/variable/CMAKE_VS_DEBUGGER_COMMAND.rst
Normal file
8
Help/variable/CMAKE_VS_DEBUGGER_COMMAND.rst
Normal file
@@ -0,0 +1,8 @@
|
||||
CMAKE_VS_DEBUGGER_COMMAND
|
||||
-------------------------
|
||||
|
||||
.. versionadded:: 3.27
|
||||
|
||||
This variable is used to initialize the :prop_tgt:`VS_DEBUGGER_COMMAND`
|
||||
property on each target as it is created. See that target property
|
||||
for additional information.
|
||||
8
Help/variable/CMAKE_VS_DEBUGGER_COMMAND_ARGUMENTS.rst
Normal file
8
Help/variable/CMAKE_VS_DEBUGGER_COMMAND_ARGUMENTS.rst
Normal file
@@ -0,0 +1,8 @@
|
||||
CMAKE_VS_DEBUGGER_COMMAND_ARGUMENTS
|
||||
-----------------------------------
|
||||
|
||||
.. versionadded:: 3.27
|
||||
|
||||
This variable is used to initialize the :prop_tgt:`VS_DEBUGGER_COMMAND_ARGUMENTS`
|
||||
property on each target as it is created. See that target property
|
||||
for additional information.
|
||||
8
Help/variable/CMAKE_VS_DEBUGGER_ENVIRONMENT.rst
Normal file
8
Help/variable/CMAKE_VS_DEBUGGER_ENVIRONMENT.rst
Normal file
@@ -0,0 +1,8 @@
|
||||
CMAKE_VS_DEBUGGER_ENVIRONMENT
|
||||
-----------------------------
|
||||
|
||||
.. versionadded:: 3.27
|
||||
|
||||
This variable is used to initialize the :prop_tgt:`VS_DEBUGGER_ENVIRONMENT`
|
||||
property on each target as it is created. See that target property
|
||||
for additional information.
|
||||
8
Help/variable/CMAKE_VS_DEBUGGER_WORKING_DIRECTORY.rst
Normal file
8
Help/variable/CMAKE_VS_DEBUGGER_WORKING_DIRECTORY.rst
Normal file
@@ -0,0 +1,8 @@
|
||||
CMAKE_VS_DEBUGGER_WORKING_DIRECTORY
|
||||
-----------------------------------
|
||||
|
||||
.. versionadded:: 3.27
|
||||
|
||||
This variable is used to initialize the :prop_tgt:`VS_DEBUGGER_WORKING_DIRECTORY`
|
||||
property on each target as it is created. See that target property
|
||||
for additional information.
|
||||
@@ -397,6 +397,10 @@ TargetProperty const StaticTargetProperties[] = {
|
||||
{ "MSVC_DEBUG_INFORMATION_FORMAT"_s, IC::CanCompileSources },
|
||||
{ "MSVC_RUNTIME_LIBRARY"_s, IC::CanCompileSources },
|
||||
{ "VS_JUST_MY_CODE_DEBUGGING"_s, IC::CanCompileSources },
|
||||
{ "VS_DEBUGGER_COMMAND"_s, IC::ExecutableTarget },
|
||||
{ "VS_DEBUGGER_COMMAND_ARGUMENTS"_s, IC::ExecutableTarget },
|
||||
{ "VS_DEBUGGER_ENVIRONMENT"_s, IC::ExecutableTarget },
|
||||
{ "VS_DEBUGGER_WORKING_DIRECTORY"_s, IC::ExecutableTarget },
|
||||
// ---- OpenWatcom
|
||||
{ "WATCOM_RUNTIME_LIBRARY"_s, IC::CanCompileSources },
|
||||
// -- Language
|
||||
|
||||
Reference in New Issue
Block a user