Skip to content

Commit

Permalink
ZeekPluginDynamic: Use absolute-but-non-realpath for dist files
Browse files Browse the repository at this point in the history
There's a pattern of README -> README.md symlinking. Using
README as dist file should not package the README.md file.
  • Loading branch information
awelzel committed Jul 2, 2024
1 parent c5eac15 commit cc9de7b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ZeekPluginDynamic.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit cc9de7b

Please sign in to comment.