Skip to content

fix: update cmake config file and add find_package integration test#38

Merged
IronsDu merged 3 commits intomainfrom
fix/cmake-config-and-test
Apr 9, 2026
Merged

fix: update cmake config file and add find_package integration test#38
IronsDu merged 3 commits intomainfrom
fix/cmake-config-and-test

Conversation

@IronsDu
Copy link
Copy Markdown
Owner

@IronsDu IronsDu commented Apr 9, 2026

After the Drogon decoupling refactoring, cpp-remote-profiler-config.cmake.in was still referencing the old profiler_lib target and finding PRIVATE deps (Backward, absl) that consumers don't need. This commit fixes the config file to match the new target structure (profiler_core/profiler_web) and adds a CI integration test to verify find_package correctness.

IronsDu and others added 3 commits April 9, 2026 09:52
After the Drogon decoupling refactoring, cpp-remote-profiler-config.cmake.in
was still referencing the old `profiler_lib` target and finding PRIVATE deps
(Backward, absl) that consumers don't need. This commit fixes the config file
to match the new target structure (profiler_core/profiler_web) and adds a CI
integration test to verify find_package correctness.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add cmake/examples/test_fetch_content/ to test add_subdirectory usage
  (simulates FetchContent consumption pattern)
- Fix clang-format issue in test_find_package/main.cpp (include order)
- Add add_subdirectory integration test step to GCC CI job
- Document discovered issue: profiler_version.h include path broken
  with add_subdirectory due to global include_directories() usage

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Delete cmake/examples/{CMakeLists.txt,FetchContent_example.cmake,
  FetchContent_integration_example.cpp} which used placeholder URLs
  and deprecated singleton API (getInstance)
- Add FetchContent_Declare usage example as comments in
  test_fetch_content/CMakeLists.txt so users can see both
  add_subdirectory and FetchContent approaches in one place

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@IronsDu IronsDu merged commit 3f0ee31 into main Apr 9, 2026
6 checks passed
@IronsDu IronsDu deleted the fix/cmake-config-and-test branch April 9, 2026 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant