SHA256
1
0
forked from pool/cppcheck

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
This commit is contained in:
Martin Pluskal 2019-01-04 08:13:34 +00:00 committed by Git OBS Bridge
parent c4a11996ef
commit 8794695220
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Jan 3 18:13:49 UTC 2019 - Nemanja V <nafsub@outlook.com>
- 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 <mpluskal@suse.com>

View File

@ -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