diff --git a/cppcheck.changes b/cppcheck.changes index 584d49e..6eeee58 100644 --- a/cppcheck.changes +++ b/cppcheck.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Jan 3 18:13:49 UTC 2019 - Nemanja V + +- Workaround for CMake lacking a CFGDIR variable. + * Patch was submitted (https://github.com/danmar/cppcheck/pull/1554) + and accepted so this change should be reverted and replaced with a CMake compile definition + -DCFGDIR=\"%{_datadir}/%{name}\" once a new upstream version is released. + ------------------------------------------------------------------- Thu Dec 27 10:03:28 UTC 2018 - Martin Pluskal diff --git a/cppcheck.spec b/cppcheck.spec index b023b98..70fa6eb 100644 --- a/cppcheck.spec +++ b/cppcheck.spec @@ -74,7 +74,7 @@ doesn't see. %build %cmake \ - -DCMAKE_CXX_FLAGS="-DNDEBUG %{optflags}" \ + -DCMAKE_CXX_FLAGS="-DNDEBUG %{optflags} -UCFGDIR -DCFGDIR=\\\"%{_datadir}/%{name}\\\"" \ -DBUILD_GUI=ON \ -DBUILD_TESTS=ON \ -DHAVE_RULES=yes