Is there a possibility to set different working directories (VS_DEBUGGER_WORKING_DIRECTORY) for Debug
and Release
builds in a CMake generated Visual Studio project?
If I write
set_target_properties(${PROJECT_BIN} PROPERTIES
VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/Debug")
Selecting Project Properties > Debugging > Working Directory will display
C:/Users/Alexandru/Documents/MyProject/Build/Debug
for both Debug
and Release
configurations, but I want
C:/Users/Alexandru/Documents/MyProject/Build/Release
for the Release
configuration.
I also tried setting VS_DEBUGGER_WORKING_DIRECTORY_DEBUG
and VS_DEBUGGER_WORKING_DIRECTORY_RELEASE
but it seems these properties don't exist.