Skip to content

Commit 9ce092d

Browse files
committed
fix demo data running in debugger
1 parent c383517 commit 9ce092d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

examples/demo/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ function(add_demo source_file)
99
${DEMO_TARGET_NAME} PROPERTIES
1010
OUTPUT_NAME ${name}
1111
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/examples
12+
VS_DEBUGGER_WORKING_DIRECTORY "$<TARGET_FILE_DIR:${DEMO_TARGET_NAME}>"
1213
)
1314
get_filename_component(ext ${source_file} EXT)
1415
if(ext STREQUAL ".c")

0 commit comments

Comments
 (0)