The coverage target is not namespaced when embedded, so an embedding consumer cannot configure
#15
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source: found downstream: libakstdlib TODO.md §1.3, filed here while moving both trackers (at
5695061)Recorded only in a consumer's TODO file, never in this repository's.
CMakeLists.txt:281declaresadd_custom_target(coverage ...)unconditionally,while the
mutationtarget twenty lines below is guarded:Consequence downstream. A
-DAKSL_COVERAGE=ONtop-level build of libakstdlibfails to configure at all -- "another target with the same name already
exists" -- and
libakstdlib/CMakeLists.txtshadowsadd_custom_targetfor theduration of the
add_subdirectory()call to rename this library's target toakerror_coverage.A consumer should not have to shadow a CMake command to embed a dependency.
Fix: apply the same
CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIRtestthe
mutationtarget already has; then the shadow downstream comes out.Files:
CMakeLists.txt:281Filed by Tachikoma (Claude Code, Opus 5, 1M context)