cmake+msvc: set debugger working directory to directory of binary

This commit is contained in:
Anonymous Maarten 2021-07-08 18:09:24 +02:00
parent 81beca3975
commit 5eba9b3092

View File

@ -17,4 +17,8 @@ function(librw_platform_target TARGET)
target_link_options(${TARGET} INTERFACE -Wl,--undefined,WinMain)
endif()
endif()
set_target_properties(${TARGET} PROPERTIES
VS_DEBUGGER_WORKING_DIRECTORY "$<TARGET_FILE_DIR:${TARGET}>"
)
endfunction()