mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-03-30 07:17:03 +00:00
Build custom UDP IP packet source if PCAP is available
This commit is contained in:
parent
16a98cc8c9
commit
a4676a53e4
@ -2129,9 +2129,11 @@ set_package_properties(PCAP PROPERTIES
|
||||
PURPOSE "Used for the custom UDP IP packet source."
|
||||
TYPE OPTIONAL
|
||||
)
|
||||
|
||||
if(PCAP_FOUND)
|
||||
set(ENABLE_RAW_UDP ON)
|
||||
endif()
|
||||
if(ENABLE_RAW_UDP)
|
||||
message(STATUS "High-optimized custom UDP IP packet source is enabled.")
|
||||
message(STATUS "Highly-optimized custom UDP IP packet source is enabled.")
|
||||
message(STATUS " You can disable it with 'cmake -DENABLE_RAW_UDP=OFF ..'")
|
||||
if(NOT PCAP_FOUND)
|
||||
message(FATAL_ERROR "PCAP required to compile custom UDP packet sample source (with ENABLE_RAW_UDP=ON)")
|
||||
|
Loading…
x
Reference in New Issue
Block a user