Fix CogUtil CMake configuration and resolve dependency issues #132
+31
−15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The CogUtil implementation was complete and functional, but had CMake configuration issues that prevented dependent projects from finding and linking to it properly. This caused several modules (
robotics-embodied,cogserver, etc.) to be excluded from builds due to "missing CogUtil" errors.Root Cause
The
cogutil-config.cmake.intemplate was missing essential CMake helpers and compatibility variables needed for proper package discovery:# Before - caused "Unknown CMake command" errors check_required_components(cogutil)Solution
Enhanced the CMake configuration to provide proper package support:
cogutil-config.cmake.into useCMakePackageConfigHelpersand include necessary CMake modulesCOGUTIL_*,CogUtil_*) for different dependent projectsKey Changes
cogutil/cogutil-config.cmake.inwith proper CMake helpers and compatibility variablescogutil/CMakeLists.txtto useconfigure_package_config_file()cogutil/demo.shpath resolutionCMakeLists.txtdependency comments to reflect resolved CogUtil issuesValidation
The fix enables dependent projects to successfully find CogUtil:
Integration test confirms proper functionality:
Impact
The CogUtil Foundation Layer (524,288 DOF tensor architecture) is now properly packaged and ready for use across the OpenCog ecosystem.
Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.