Don't include screenshare app in OSX client-only build

This commit is contained in:
David Rowe 2021-04-06 12:34:13 +12:00
parent 1ddbf15f14
commit 6b18011a97
2 changed files with 13 additions and 3 deletions

View file

@ -316,7 +316,10 @@ endif()
if (BUILD_CLIENT)
add_subdirectory(interface)
add_subdirectory(screenshare)
if (NOT APPLE OR NOT CLIENT_ONLY)
# Don't include Screenshare in OSX client-only builds.
add_subdirectory(screenshare)
endif()
if (APPLE)
set_target_properties(Vircadia PROPERTIES FOLDER "Apps")
else()

View file

@ -196,10 +196,17 @@ if (BUILD_TOOLS AND NPM_EXECUTABLE)
add_dependencies(resources jsdoc)
endif()
if (WIN32 OR APPLE)
add_dependencies(${TARGET_NAME} resources screenshare)
if (WIN32)
add_dependencies(${TARGET_NAME} resources screenshare)
endif()
if (APPLE)
add_dependencies(${TARGET_NAME} resources)
# Don't include Screenshare in OSX client-only builds.
if (NOT CLIENT_ONLY)
add_dependencies(${TARGET_NAME} screenshare)
endif()
endif()
if (WIN32)
# These are external plugins, but we need to do the 'add dependency' here so that their