Fix linking issues
Change-Id: If2f6f53323da8036b76af564e17554f720ad73e9
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e407ba2..555e2ee 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -109,13 +109,13 @@
src/netconf_access.cpp
)
-target_link_libraries(netconfaccess PUBLIC datastoreaccess yangschema ast_values utils PRIVATE PkgConfig::LIBNETCONF2)
+target_link_libraries(netconfaccess PUBLIC datastoreaccess yangschema ast_values utils PkgConfig::LIBNETCONF2 PRIVATE PkgConfig::LIBYANG)
add_library(yangaccess STATIC
src/yang_access.cpp
)
-target_link_libraries(yangaccess PUBLIC datastoreaccess yangschema)
+target_link_libraries(yangaccess PUBLIC datastoreaccess yangschema PRIVATE PkgConfig::LIBYANG)
add_library(yangschema STATIC
src/yang_schema.cpp
@@ -282,7 +282,7 @@
else()
message(FATAL_ERROR "Unknown backend ${backend}")
endif()
- target_link_libraries(${TESTNAME} yangschema sysreposubscription proxydatastore)
+ target_link_libraries(${TESTNAME} yangschema sysreposubscription proxydatastore PkgConfig::SYSREPO)
target_compile_definitions(${TESTNAME} PRIVATE ${backend}_BACKEND)
endfunction()