From fe9fc276786eaa88db60a0ff52cd5aa18e93e27d Mon Sep 17 00:00:00 2001 From: Derek G Foster Date: Fri, 29 Sep 2023 14:11:44 -0700 Subject: [PATCH] Fix cmake configuration error (#301) - 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 --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7630fe6b..36b3f5fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)