Skip to content

Commit

Permalink
Re-introduce -DHAVE_BOOST to cppcheck builds
Browse files Browse the repository at this point in the history
A regression introduced in cppcheck 2.15.0 has been fixed in 2.16.0
  • Loading branch information
matt335672 committed Nov 15, 2024
1 parent 595bda6 commit 01c262a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/install_cppcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,13 @@ fi
# Cppcheck 2.8 added optional support for utilizing Boost
make_args="$make_args CPPFLAGS=-DHAVE_BOOST"
;;
2.*)
2.15.*)
# Cppcheck 2.15 doesn't seem to define FILESDIR if CPPFLAGS is set
;;
2.*)
# Cppcheck 2.16 (and later) fixes the HAVE_BOOST issue
make_args="$make_args CPPFLAGS=-DHAVE_BOOST"
;;
esac

# Use all available CPUs
Expand Down

0 comments on commit 01c262a

Please sign in to comment.