mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-03-22 14:00:54 +08:00
仅在有 parent 时设置到 parent 中 (#2676)
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user