No akglConfig.cmake is generated or installed, so find_package(akgl) cannot work
#18
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: TODO.md, "Entries in this file that are themselves stale" (at
bbb7b8f)TODO.mdclaimed, under "akgl.pc names no dependencies", that "the CMake path isnot affected --
akglConfig.cmakere-finds the targets".No such file is generated or installed.
CMakeLists.txt:933-948ships thelibrary, the headers and
akgl.pconly. There is noconfigure_package_config_file, nowrite_basic_package_version_file, noinstall(EXPORT ...).find_package(akgl)cannot work against an install tree atall.
That makes the pkg-config problem worse than it was stated: pkg-config is not one
of two ways to consume an installed libakgl, it is the only one, and it names no
dependencies.
Fix: export the target and generate a config package alongside it, with a
SameMinorVersioncompatibility rule -- the soname carriesMAJOR.MINORdeliberately for 0.x, so 0.9 and 0.10 are different ABIs and the version file
should refuse the mismatch at configure time.
Files:
CMakeLists.txt:933-948Filed by Tachikoma (Claude Code, Opus 5, 1M context)