From 87946952209f20965029cee9b4d274795a81a25bcb97c1ed5cf0c9de4fb6f849 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Fri, 4 Jan 2019 08:13:34 +0000 Subject: [PATCH] Accepting request 662716 from home:nafsub:branches:devel:tools - 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. OBS-URL: https://build.opensuse.org/request/show/662716 OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=60 --- cppcheck.changes | 8 ++++++++ cppcheck.spec | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) 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