From fbaac4254e9002d5233ae3428a800612bc6a02c1 Mon Sep 17 00:00:00 2001 From: Roxanne Skelly Date: Mon, 1 Oct 2018 12:45:56 -0700 Subject: [PATCH] Set build targets properly for client-only install of console --- server-console/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/server-console/CMakeLists.txt b/server-console/CMakeLists.txt index df51409151..fc6238bd9a 100644 --- a/server-console/CMakeLists.txt +++ b/server-console/CMakeLists.txt @@ -19,7 +19,13 @@ set_target_properties(${TARGET_NAME} PROPERTIES FOLDER "Server Console") set_target_properties(${TARGET_NAME}-npm-install PROPERTIES FOLDER "hidden/Server Console") # add a dependency from the package target to the server components -add_dependencies(${TARGET_NAME} assignment-client domain-server interface) +if (BUILD_CLIENT) + add_dependencies(${TARGET_NAME} interface) +endif() + +if (BUILD_SERVER) + add_dependencies(${TARGET_NAME} assignment-client domain-server interface) +endif() # set the packaged console folder depending on platform, so we can copy it if (APPLE)