Skip to content

Commit

Permalink
Fix cmake configuration error (#301)
Browse files Browse the repository at this point in the history
- As the result of the most recent changes, the cmake configuration
  step fails because the gflags::gflags_shared target is undefined.
  Address this by finding the gflags package in the top-level cmake
  listfile.

Signed-off-by: Derek G Foster <[email protected]>
ffoulkes authored Sep 29, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 592ba81 commit fe9fc27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -140,7 +140,9 @@ cmake_print_variables(CMAKE_PREFIX_PATH)
# External packages #
#####################

find_package(absl REQUIRED)
find_package(absl CONFIG REQUIRED)
set(GFLAGS_USE_TARGET_NAMESPACE TRUE)
find_package(gflags CONFIG REQUIRED)

if(DPDK_TARGET)
include(dpdk-driver)

0 comments on commit fe9fc27

Please sign in to comment.