mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Visual studio itself supports the corresponding `LocalDebugger*` properties on utility targets; support generating them from CMake as well.
7 lines
194 B
CMake
7 lines
194 B
CMake
enable_language(CXX)
|
|
add_library(foo foo.cpp)
|
|
add_custom_target(bar)
|
|
|
|
set_target_properties(foo bar PROPERTIES
|
|
VS_DEBUGGER_ENVIRONMENT "my-debugger-environment $<TARGET_PROPERTY:foo,NAME>")
|