Skip to content

Commit

Permalink
Pass source directory to FetchContent_Populate for older CMakes
Browse files Browse the repository at this point in the history
  • Loading branch information
timwoj committed Jul 12, 2024
1 parent ec934c1 commit 8a41172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ZeekBundle.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function (ZeekBundle_Add)
# Fetch the package by delegating to FetchContent.
FetchContent_Declare(dl_${arg_NAME} ${arg_FETCH})
string(TOLOWER "dl_${arg_NAME}" internalName)
FetchContent_Populate(${internalName})
FetchContent_Populate(${internalName} SOURCE_DIR ${arg_FETCH})
file(MAKE_DIRECTORY "${${internalName}_BINARY_DIR}")
# Build the package and verify that it was found.
zeekbundle_build(${arg_NAME} "${${internalName}_SOURCE_DIR}" "${${internalName}_BINARY_DIR}"
Expand Down

0 comments on commit 8a41172

Please sign in to comment.