Skip to content

Commit 75e41bf

Browse files
authored
仅在有 parent 时设置到 parent 中 (ZLMediaKit#2676)
1 parent 7b1a4d2 commit 75e41bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ if(ENABLE_SERVER)
462462
endif()
463463

464464
# Android 会 add_subdirectory 并依赖该变量
465-
if(ENABLE_SERVER_LIB)
465+
if(ENABLE_SERVER_LIB AND NOT CMAKE_PARENT_LIST_FILE STREQUAL CMAKE_CURRENT_LIST_FILE)
466466
set(MK_LINK_LIBRARIES ${MK_LINK_LIBRARIES} PARENT_SCOPE)
467467
endif()
468468

0 commit comments

Comments
 (0)