From 857e7daa823e8961c0bd96ab428d24089dd52f20 Mon Sep 17 00:00:00 2001 From: yangchao <1162485779@qq.com> Date: Tue, 10 May 2022 14:24:21 +0800 Subject: [PATCH] server mode no window --- win32/CMakeLists.txt | 5 +++-- win64/CMakeLists.txt | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/win32/CMakeLists.txt b/win32/CMakeLists.txt index 39efe5ed..9100704e 100644 --- a/win32/CMakeLists.txt +++ b/win32/CMakeLists.txt @@ -253,14 +253,15 @@ list(APPEND CC_EXTERNAL_LIBS OpenAL32 sqlite3 websockets - SDL2 - SDL2Main tcmalloc ${glslang_libs_name} ${tbb_libs_name} ${PhysXSDK} ) +if(NOT USE_SERVER_MODE) + list(APPEND CC_EXTERNAL_LIBS SDL2 SDL2Main) +endif() set(ZLIB zlib) if(NOT USE_MODULES) diff --git a/win64/CMakeLists.txt b/win64/CMakeLists.txt index 0d585d9e..9eb73556 100644 --- a/win64/CMakeLists.txt +++ b/win64/CMakeLists.txt @@ -253,14 +253,16 @@ list(APPEND CC_EXTERNAL_LIBS sqlite3 zlib websockets - SDL2 - SDL2Main tcmalloc ${glslang_libs_name} ${tbb_libs_name} ${PhysXSDK} ) +if(NOT USE_SERVER_MODE) + list(APPEND CC_EXTERNAL_LIBS SDL2 SDL2Main) +endif() + set(ZLIB zlib) if(NOT USE_MODULES) list(APPEND CC_EXTERNAL_LIBS ${ZLIB}