Skip to content

Commit

Permalink
Fix: Resolve error on compile (#741) (#744)
Browse files Browse the repository at this point in the history
* Resolve error on compile

Fix for error " `pcap-config --libs` contains leading whitespace. "

* Approved changes



---------

Co-authored-by: hubblexplorer <81538364+hubblexplorer@users.noreply.github.com>
Co-authored-by: Juan José Nicola <jjnicola@gmail.com>
Co-authored-by: Juan José Nicola <juan.nicola@greenbone.net>
  • Loading branch information
4 people committed Feb 27, 2023
1 parent 814097c commit 474d732
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions boreas/CMakeLists.txt
Expand Up @@ -62,6 +62,7 @@ if (PCAP_CONFIG)
execute_process (COMMAND pcap-config --libs
OUTPUT_VARIABLE PCAP_LDFLAGS
OUTPUT_STRIP_TRAILING_WHITESPACE)
string(STRIP "${PCAP_LDFLAGS}" PCAP_LDFLAGS)
execute_process (COMMAND pcap-config --cflags
OUTPUT_VARIABLE PCAP_CFLAGS
OUTPUT_STRIP_TRAILING_WHITESPACE)
Expand Down

0 comments on commit 474d732

Please sign in to comment.