Add missing inter-library dependencies
This is needed when one wants to use just the netconfaccess library,
otherwise some required symbols are missing.
Change-Id: Iab642afea1f9588574113427e92dffbd82d6a2df
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 27172a5..5c6d73e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -83,7 +83,7 @@
src/static_schema.cpp
src/schema.cpp
)
-target_link_libraries(schemas PUBLIC Boost::boost)
+target_link_libraries(schemas PUBLIC path Boost::boost)
add_library(datastoreaccess STATIC
src/datastore_access.cpp
@@ -103,14 +103,14 @@
src/netconf_access.cpp
)
-target_link_libraries(netconfaccess datastoreaccess ast_values ${LIBNETCONF2_LIBRARIES})
+target_link_libraries(netconfaccess datastoreaccess yangschema ast_values utils ${LIBNETCONF2_LIBRARIES})
link_directories(${LIBNETCONF2_LIBRARY_DIRS})
target_include_directories(netconfaccess SYSTEM PRIVATE ${LIBNETCONF2_INCLUDE_DIRS})
add_library(yangschema STATIC
src/yang_schema.cpp
)
-target_link_libraries(yangschema ${LIBYANG_LIBRARIES})
+target_link_libraries(yangschema schemas ${LIBYANG_LIBRARIES})
# Ensure that this doesn't override Boost's -isystem -- see the log for details.
target_include_directories(yangschema SYSTEM PRIVATE ${LIBYANG_INCLUDEDIR})
link_directories(${LIBYANG_LIBRARY_DIRS})