diff --git a/server-console/CMakeLists.txt b/server-console/CMakeLists.txt index b77bab4dd4..9a96b07442 100644 --- a/server-console/CMakeLists.txt +++ b/server-console/CMakeLists.txt @@ -68,4 +68,7 @@ if (PR_BUILD OR PRODUCTION_BUILD) DESTINATION ${BESIDE_CONSOLE_DIR} COMPONENT ${SERVER_COMPONENT} ) +else () + set_target_properties(${TARGET_NAME} PROPERTIES EXCLUDE_FROM_ALL TRUE EXCLUDE_FROM_DEFAULT_BUILD TRUE) + set_target_properties(${TARGET_NAME}-npm-install PROPERTIES EXCLUDE_FROM_ALL TRUE EXCLUDE_FROM_DEFAULT_BUILD TRUE) endif ()