summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-07-12 10:29:49 -0700
committerGuy Harris <guy@alum.mit.edu>2018-07-12 10:30:10 -0700
commit047b5aeb9718de1c94de91c3d5c04457d925d8cc (patch)
tree482e13f3f1b84aae9255fb32d55bebf235f845d0 /cmake
parenteae72ba5247755c55884fa62533c0a4fea18b6ca (diff)
downloadtcpdump-047b5aeb9718de1c94de91c3d5c04457d925d8cc.tar.gz
Handle the output of pcap-config --cflags being empty.
Quote it in the string(REGEX REPLACE) call.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/FindPCAP.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Modules/FindPCAP.cmake b/cmake/Modules/FindPCAP.cmake
index 078025af..a021e298 100644
--- a/cmake/Modules/FindPCAP.cmake
+++ b/cmake/Modules/FindPCAP.cmake
@@ -24,7 +24,7 @@ if(PCAP_CONFIG)
# XXX - this assumes that there's only one -I flag in the output
# of pcap-config --cflags. That *should* be the case.
#
- string(REGEX REPLACE "-I" "" PCAP_INCLUDE_DIRS ${PCAP_CONFIG_OUTPUT})
+ string(REGEX REPLACE "-I" "" PCAP_INCLUDE_DIRS "${PCAP_CONFIG_OUTPUT}")
set(PCAP_INCLUDE_DIR ${PCAP_INCLUDE_DIRS})
# Now, get the libraries.