From f28eba4d2fe613cecf2b315688535b6445bcaaa7 Mon Sep 17 00:00:00 2001 From: yangchao <1162485779@qq.com> Date: Thu, 24 Feb 2022 14:49:47 +0800 Subject: [PATCH] Server mode not link sdl2 (#221) --- linux/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linux/CMakeLists.txt b/linux/CMakeLists.txt index c463fc48..11575c82 100644 --- a/linux/CMakeLists.txt +++ b/linux/CMakeLists.txt @@ -177,8 +177,11 @@ list(APPEND CC_EXTERNAL_LIBS png websockets webp - sdl2 curl ${optional_libs_name} ${glslang_libs_name} ) + +if(NOT USE_SERVER_MODE) + list(APPEND CC_EXTERNAL_LIBS sdl2) +endif() \ No newline at end of file