build: bugfix: missing headeronly deps break submodule build

This commit is contained in:
Roland Conybeare 2025-07-06 14:31:52 -05:00
commit 809f2df37d
2 changed files with 5 additions and 0 deletions

View file

@ -16,6 +16,8 @@ if (ENABLE_TESTING)
xo_self_headeronly_dependency(${SELF_EXE} xo_ratio)
xo_dependency(${SELF_EXE} reflect)
# need explicit header-only dependencies, at least in submodule build
xo_dependency(${SELF_EXE} xo_reflectutil)
xo_dependency(${SELF_EXE} randomgen)
xo_dependency(${SELF_EXE} indentlog)
xo_external_target_dependency(${SELF_EXE} Catch2 Catch2::Catch2)

View file

@ -20,6 +20,9 @@ if (ENABLE_TESTING)
xo_self_dependency(${SELF_EXE} xo_unit)
xo_headeronly_dependency(${SELF_EXE} xo_ratio)
# at least need explicit {indentlog, randomgen} deps in a submodule build
xo_headeronly_dependency(${SELF_EXE} indentlog)
xo_headeronly_dependency(${SELF_EXE} randomgen)
xo_external_target_dependency(${SELF_EXE} Catch2 Catch2::Catch2)
endif()