Skip to content

fixed #14002 - added missing Boost include for testrunner#7660

Merged
chrchr-github merged 1 commit intocppcheck-opensource:mainfrom
firewave:boost-xx
Jul 18, 2025
Merged

fixed #14002 - added missing Boost include for testrunner#7660
chrchr-github merged 1 commit intocppcheck-opensource:mainfrom
firewave:boost-xx

Conversation

@firewave
Copy link
Copy Markdown
Collaborator

@firewave firewave commented Jul 10, 2025

fixes build with Boost installed in non-default system include dir

@firewave firewave changed the title fixed build with Boost installed in non-default system include dir fixed #14002 - added missing Boost include for testrunner Jul 10, 2025
@firewave
Copy link
Copy Markdown
Collaborator Author

See https://github.com/danmar/cppcheck/actions/runs/16191580303 for failed builds with the newly added job and no fix applied.

@pfultz2
Copy link
Copy Markdown
Contributor

pfultz2 commented Jul 11, 2025

#7658 will fix the issue with boost.

Comment thread test/CMakeLists.txt
target_externals_include_directories(testrunner PRIVATE ${PROJECT_SOURCE_DIR}/externals/simplecpp/)
if (Boost_FOUND)
target_include_directories(testrunner SYSTEM PRIVATE ${Boost_INCLUDE_DIRS})
endif()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having to updated all the consumers when dependencies change is very fragile and error-prone. #7658 fixes that issue.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but that should not be merged so close to the release. And fixing such a minor issue within implicitly in a major rework is not great.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its always a small fix while technical debt piles up. Its best to take the opportunity to fix the issue once and for all.

@firewave firewave marked this pull request as ready for review July 14, 2025 10:17
Copy link
Copy Markdown
Contributor

@pfultz2 pfultz2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can merge this for the short-term.

@pfultz2
Copy link
Copy Markdown
Contributor

pfultz2 commented Jul 18, 2025

@danmar @orbitcowboy @chrchr-github Can you merge this?

@chrchr-github chrchr-github merged commit f68ba93 into cppcheck-opensource:main Jul 18, 2025
62 checks passed
@firewave firewave deleted the boost-xx branch August 4, 2025 13:16
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.

3 participants