build: bugfix: support transitive deps in find_package helper
This commit is contained in:
parent
58b7f567e9
commit
26dffce470
2 changed files with 6 additions and 4 deletions
|
|
@ -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@")
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue