From 3024c1e3b0da98de0c5f7efb35377559141b0dfd Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Wed, 26 Jul 2023 14:36:32 +0200 Subject: [PATCH] [cmake] add option to disable platform server add a new option to disable platform server implementations --- server/CMakeLists.txt | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/server/CMakeLists.txt b/server/CMakeLists.txt index d4a360dfe..88e8fd6a0 100644 --- a/server/CMakeLists.txt +++ b/server/CMakeLists.txt @@ -16,10 +16,9 @@ # limitations under the License. # Servers -include(CMakeDependentOption) - -CMAKE_DEPENDENT_OPTION(WITH_SHADOW "Compile with shadow server" ON "WITH_SERVER" OFF) -CMAKE_DEPENDENT_OPTION(WITH_PROXY "Compile with proxy server" ON "WITH_SERVER" OFF) +option(WITH_SHADOW "Compile with shadow server" ON) +option(WITH_PROXY "Compile with proxy server" ON) +option(WITH_PLATFORM_SERVER "Compile with platform server" ON) add_subdirectory(common) if (WITH_SHADOW) @@ -29,17 +28,17 @@ if (WITH_PROXY) add_subdirectory(proxy) endif() -if(FREERDP_VENDOR) - if(WITH_SAMPLE) - add_subdirectory(Sample) - endif() +if(WITH_SAMPLE) + add_subdirectory(Sample) +endif() +if (WITH_PLATFORM_SERVER) if(NOT WIN32) if(APPLE AND (NOT IOS)) add_subdirectory(Mac) endif() else() - add_subdirectory(Windows) + add_subdirectory(Windows) endif() if(NOT DEFINED WITH_FREERDS)