Skip to content
Snippets Groups Projects
Commit 64b6faec authored by Alexander Gauggel's avatar Alexander Gauggel
Browse files

[#37] set VS debug working directory correctly

parent 07f72bd7
No related branches found
No related tags found
1 merge request!27Resolve "VS debugger working directory"
Pipeline #24988 passed
......@@ -15,6 +15,10 @@ add_executable(first_triangle src/main.cpp)
if(MSVC)
set_target_properties(first_triangle PROPERTIES RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
set_target_properties(first_triangle PROPERTIES RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
# in addition to setting the output directory, the working directory has to be set
# by default visual studio sets the working directory to the build directory, when using the debugger
set_target_properties(first_triangle PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
endif()
# including headers of dependencies and the VkCV framework
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment