Feature: Enable population of MSVC Properties->Debugging->Environment field from CMake
I use this field to set the DLL access locations that I want for a particular project configuration to use. It would be very convenient not to have to repopulate on Generation.
It is stored in the *.vcxproj.user file associated with a target's project file.
Example contents are:
<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <LocalDebuggerEnvironment>PATH=C:\d\R-bin\Deps\OpenCV-bin\bin\Debug;C:\d\R-bin\Deps\Plus-bin\bin\Debug;%PATH% </LocalDebuggerEnvironment> <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <LocalDebuggerEnvironment>PATH=C:\d\R-bin\Deps\OpenCV-bin\bin\Release;C:\d\R-bin\Deps\Plus-bin\bin\Release;%PATH% </LocalDebuggerEnvironment> <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> </PropertyGroup> </Project>
Perhaps fields such as:
- VS_TARGET_ENVIRONMENT_FIELD
- VS_TARGET_ENVIRONMENT_FIELD_DEBUG
- VS_TARGET_ENVIRONMENT_FIELD_RELEASE
could be set as target properties?
If I have missed an already existing mechanism, my apologies!
Thanks for your consideration.