From 6a8ddc2492b09fccce8951059dd9ee68731bca9a Mon Sep 17 00:00:00 2001 From: Arne Welzel Date: Fri, 5 Jan 2024 17:29:47 +0100 Subject: [PATCH] FindZeek: Split --include_dirs on colon instead of space The zeek-config output is colon separated. Using ZEEK_INCLUDE_DIRS for include_directories() previously did not work correctly as ZEEK_INCLUDE_DIRS was treated as a single directory, resulting in: -I/opt/zeek/include:/usr/include --- FindZeek.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FindZeek.cmake b/FindZeek.cmake index f128e11..6a3800f 100644 --- a/FindZeek.cmake +++ b/FindZeek.cmake @@ -107,7 +107,7 @@ else () run_zeek_config(ZEEK_VERSION "--version") run_zeek_config(ZEEK_BUILD_TYPE "--build_type") - string(REPLACE " " ";" ZEEK_INCLUDE_DIRS "${ZEEK_INCLUDE_DIRS}") + string(REPLACE ":" ";" ZEEK_INCLUDE_DIRS "${ZEEK_INCLUDE_DIRS}") # Copied from Zeek to generate numeric version number. string(REGEX REPLACE "[.-]" " " version_numbers "${ZEEK_VERSION}")