build: bugfix: support transitive deps in find_package helper

This commit is contained in:
Roland Conybeare 2023-10-09 14:00:54 -04:00
commit 26dffce470
2 changed files with 6 additions and 4 deletions

View file

@ -1,6 +1,8 @@
@PACKAGE_INIT@
#include(CMakeFindDependencyMacro)
#find_dependency(indentlog)
include(CMakeFindDependencyMacro)
find_dependency(refcnt)
find_dependency(indentlog)
find_dependency(subsys)
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
check_required_components("@PROJECT_NAME@")

View file

@ -8,9 +8,9 @@ xo_add_shared_library(${SELF_LIBRARY_NAME} ${PROJECT_VERSION} 1 ${SELF_SOURCE_FI
# ----------------------------------------------------------------
# dependencies: indentlog, ...
# note: changes here must coordinate with cmake/reflectConfig.cmake.in
xo_dependency(${SELF_LIBRARY_NAME} indentlog)
xo_dependency(${SELF_LIBRARY_NAME} refcnt)
xo_dependency(${SELF_LIBRARY_NAME} indentlog)
xo_dependency(${SELF_LIBRARY_NAME} subsys)
# ----------------------------------------------------------------
# 3rd party dependency: boost: