Skip to content

Commit

Permalink
Examples: Set startup folder for debugging in Visual Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioLiebisch authored and eXpl0it3r committed Apr 14, 2018
1 parent 9bdd6d4 commit 2cd4797
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/Macros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ macro(sfml_add_example target)
# set the target flags to use the appropriate C++ standard library
sfml_set_stdlib(${target})

# set the Visual Studio startup path for debugging
set_target_properties(${target} PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})

# link the target to its SFML dependencies
if(THIS_DEPENDS)
target_link_libraries(${target} PRIVATE ${THIS_DEPENDS})
Expand Down

0 comments on commit 2cd4797

Please sign in to comment.