From cc9de7b4e8f84cea31e284fe0028a595f2c720d6 Mon Sep 17 00:00:00 2001 From: Arne Welzel Date: Tue, 2 Jul 2024 19:34:25 +0200 Subject: [PATCH] ZeekPluginDynamic: Use absolute-but-non-realpath for dist files There's a pattern of README -> README.md symlinking. Using README as dist file should not package the README.md file. --- ZeekPluginDynamic.cmake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ZeekPluginDynamic.cmake b/ZeekPluginDynamic.cmake index c6bda10..85d290b 100644 --- a/ZeekPluginDynamic.cmake +++ b/ZeekPluginDynamic.cmake @@ -159,8 +159,7 @@ function (zeek_add_dynamic_plugin ns name) # PROJECT_SOURCE_DIR (last project() invocation) and uses the # resulting path in the tarball. foreach (df ${FN_ARGS_DIST_FILES}) - # set(df_src ${CMAKE_CURRENT_SOURCE_DIR}/${df}) - get_filename_component(df_src "${df}" REALPATH) + get_filename_component(df_src "${df}" ABSOLUTE) if (NOT EXISTS "${df_src}") # This was silently ignored previously.