消除过多cmake警告

This commit is contained in:
xia-chu 2024-11-29 20:14:32 +08:00
parent 78b00d9dc0
commit 4f8127f6f1

View File

@ -29,7 +29,7 @@ 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 PCAP_FOUND) if(NOT PCAP_FOUND)
message(WARNING "PCAP 未找到") # message(WARNING "PCAP 未找到")
if("${TEST_EXE_NAME}" MATCHES "test_rtp_pcap") if("${TEST_EXE_NAME}" MATCHES "test_rtp_pcap")
continue() continue()
endif() endif()