Better VS studio support
parent
4422a4dcb1
commit
2b3254ef24
|
|
@ -3,8 +3,8 @@
|
|||
# cmake_minimum_required should appear before any
|
||||
# other commands to guarantee full compatibility
|
||||
# with the version specified
|
||||
## prior to 3.4, the Windows manifest handling was missing
|
||||
cmake_minimum_required(VERSION 3.4.0 FATAL_ERROR)
|
||||
## 3.8 added VS_DEBUGGER_WORKING_DIRECTORY support
|
||||
cmake_minimum_required(VERSION 3.8.0 FATAL_ERROR)
|
||||
|
||||
set(ROOT_PROJECT_NAME "SecondLife" CACHE STRING
|
||||
"The root project/makefile/solution name. Defaults to SecondLife.")
|
||||
|
|
@ -83,6 +83,12 @@ add_dependencies(viewer secondlife-bin)
|
|||
|
||||
add_subdirectory(${VIEWER_PREFIX}doxygen EXCLUDE_FROM_ALL)
|
||||
|
||||
# sets the 'startup project' for debugging from visual studio.
|
||||
set_property(
|
||||
DIRECTORY ${VIEWER_PREFIX}
|
||||
PROPERTY VS_STARTUP_PROJECT secondlife-bin
|
||||
)
|
||||
|
||||
if (LL_TESTS)
|
||||
# Define after the custom targets are created so
|
||||
# individual apps can add themselves as dependencies
|
||||
|
|
|
|||
|
|
@ -1879,12 +1879,12 @@ if (WINDOWS)
|
|||
|
||||
# sets the 'working directory' for debugging from visual studio.
|
||||
# Condition for version can be moved to requirements once build agents will be updated (see TOOL-3865)
|
||||
if ((NOT UNATTENDED) AND (${CMAKE_VERSION} VERSION_GREATER "3.7.2"))
|
||||
if (NOT UNATTENDED)
|
||||
set_property(
|
||||
TARGET ${VIEWER_BINARY_NAME}
|
||||
PROPERTY VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
)
|
||||
endif ((NOT UNATTENDED) AND (${CMAKE_VERSION} VERSION_GREATER "3.7.2"))
|
||||
endif (NOT UNATTENDED)
|
||||
|
||||
if (PACKAGE)
|
||||
add_custom_command(
|
||||
|
|
|
|||
Loading…
Reference in New Issue