mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
cmake: 检查 target 来确认功能是否已启用
This commit is contained in:
parent
9d3ead61de
commit
d850846612
@ -27,7 +27,7 @@ aux_source_directory(. TEST_SRC_LIST)
|
|||||||
foreach(TEST_SRC ${TEST_SRC_LIST})
|
foreach(TEST_SRC ${TEST_SRC_LIST})
|
||||||
get_filename_component(TEST_EXE_NAME ${TEST_SRC} NAME_WE)
|
get_filename_component(TEST_EXE_NAME ${TEST_SRC} NAME_WE)
|
||||||
|
|
||||||
if(NOT ENABLE_WEBRTC)
|
if(NOT TARGET ZLMediaKit::WebRTC)
|
||||||
# 暂时过滤掉依赖 WebRTC 的测试模块
|
# 暂时过滤掉依赖 WebRTC 的测试模块
|
||||||
if("${TEST_EXE_NAME}" MATCHES "test_rtcp_nack")
|
if("${TEST_EXE_NAME}" MATCHES "test_rtcp_nack")
|
||||||
continue()
|
continue()
|
||||||
|
Loading…
Reference in New Issue
Block a user