Skip to content

Commit 7dcf6b1

Browse files
committed
pkg-config BUGFIX missing xxhash rependency
Fixes #2460
1 parent 7f1122c commit 7dcf6b1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ target_link_libraries(yang ${PCRE2_LIBRARIES})
414414
find_package(XXHash)
415415
if(XXHASH_FOUND)
416416
add_definitions(-DLY_XXHASH_SUPPORT)
417+
set(PC_XXHASH_LIB libxxhash)
417418
include_directories(${XXHASH_INCLUDE_DIR})
418419
target_link_libraries(yang ${XXHASH_LIBRARY})
419420
message(STATUS "Hash algorithm: xxhash")

libyang.pc.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
55
Name: @PROJECT_NAME@
66
Description: @LIBYANG_DESCRIPTION@
77
Version: @LIBYANG_VERSION@
8-
Requires.private: libpcre2-8
8+
Requires.private: libpcre2-8 @PC_XXHASH_LIB@
99
Libs: -L${libdir} -lyang
1010
Libs.private: -lpcre2-8
1111
Cflags: -I${includedir}

0 commit comments

Comments
 (0)