Skip to content
Snippets Groups Projects
Commit ba24af92 authored by andreykproductengine's avatar andreykproductengine
Browse files

Fix for local studio builds

parent f972de1f
No related branches found
No related tags found
No related merge requests found
...@@ -45,6 +45,8 @@ endif() ...@@ -45,6 +45,8 @@ endif()
# Don't bother with a MinSizeRel build. # Don't bother with a MinSizeRel build.
set(CMAKE_CONFIGURATION_TYPES "RelWithDebInfo;Release;Debug" CACHE STRING set(CMAKE_CONFIGURATION_TYPES "RelWithDebInfo;Release;Debug" CACHE STRING
"Supported build types." FORCE) "Supported build types." FORCE)
set(UNATTENDED ON CACHE BOOL ”On Windows, turn this OFF to implicitly run VSTool.exe after configure.”)
# Platform-specific compilation flags. # Platform-specific compilation flags.
......
...@@ -1877,6 +1877,21 @@ if (WINDOWS) ...@@ -1877,6 +1877,21 @@ if (WINDOWS)
windows-crash-logger windows-crash-logger
) )
# sets the 'working directory' for debugging from visual studio.
if ((NOT UNATTENDED) AND (NOT DEFINED ENV{TEAMCITY_PROJECT_NAME}))
add_custom_command(
TARGET ${VIEWER_BINARY_NAME} POST_BUILD
COMMAND ${CMAKE_SOURCE_DIR}/tools/vstool/vstool.exe
ARGS
--solution
${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}.sln
--workingdir
${VIEWER_BINARY_NAME}
"${CMAKE_CURRENT_SOURCE_DIR}"
COMMENT "Setting the ${VIEWER_BINARY_NAME} working directory for debugging."
)
endif ((NOT UNATTENDED) AND (NOT DEFINED ENV{TEAMCITY_PROJECT_NAME}))
if (PACKAGE) if (PACKAGE)
add_custom_command( add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/event_host.tar.bz2 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/event_host.tar.bz2
......
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