From 75e41bf3b8ad76c4a92cd88eab272d3a6788f30c Mon Sep 17 00:00:00 2001 From: Xiaofeng Wang Date: Wed, 19 Jul 2023 22:38:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=85=E5=9C=A8=E6=9C=89=20parent=20?= =?UTF-8?q?=E6=97=B6=E8=AE=BE=E7=BD=AE=E5=88=B0=20parent=20=E4=B8=AD=20(#2?= =?UTF-8?q?676)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 841e83da..cb85679b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -462,7 +462,7 @@ if(ENABLE_SERVER) endif() # Android 会 add_subdirectory 并依赖该变量 -if(ENABLE_SERVER_LIB) +if(ENABLE_SERVER_LIB AND NOT CMAKE_PARENT_LIST_FILE STREQUAL CMAKE_CURRENT_LIST_FILE) set(MK_LINK_LIBRARIES ${MK_LINK_LIBRARIES} PARENT_SCOPE) endif()