From dceae1217db7ba7328e9967bbd713ac7a968ba49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20St=C3=B6ggl?= Date: Mon, 23 Dec 2019 15:01:26 +0100 Subject: [PATCH] Fix typo in -DUSE_MATCHCOMPILER Typo: -DMATCHCOMPILER -> -DUSE_MATCHCOMPILER Fixes the following CMake Warning: Manually-specified variables were not used by the project: MATCHCOMPILER --- cppcheck.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cppcheck.spec b/cppcheck.spec index 9465f48..45153b2 100644 --- a/cppcheck.spec +++ b/cppcheck.spec @@ -96,9 +96,9 @@ mkdir objdir-%{_target_platform} cd objdir-%{_target_platform} # Upstream doesn't support shared libraries (unversioned solib) %if 0%{?rhel} == 7 -%cmake3 .. -DCMAKE_BUILD_TYPE=Release -DMATCHCOMPILER=yes -DHAVE_RULES=yes -DBUILD_GUI=%{gui} -DBUILD_SHARED_LIBS:BOOL=OFF -DBUILD_TESTS=yes -DFILESDIR=%{_datadir}/Cppcheck +%cmake3 .. -DCMAKE_BUILD_TYPE=Release -DUSE_MATCHCOMPILER=yes -DHAVE_RULES=yes -DBUILD_GUI=%{gui} -DBUILD_SHARED_LIBS:BOOL=OFF -DBUILD_TESTS=yes -DFILESDIR=%{_datadir}/Cppcheck %else -%cmake .. -DCMAKE_BUILD_TYPE=Release -DMATCHCOMPILER=yes -DHAVE_RULES=yes -DBUILD_GUI=%{gui} -DBUILD_SHARED_LIBS:BOOL=OFF -DBUILD_TESTS=yes -DFILESDIR=%{_datadir}/Cppcheck +%cmake .. -DCMAKE_BUILD_TYPE=Release -DUSE_MATCHCOMPILER=yes -DHAVE_RULES=yes -DBUILD_GUI=%{gui} -DBUILD_SHARED_LIBS:BOOL=OFF -DBUILD_TESTS=yes -DFILESDIR=%{_datadir}/Cppcheck %endif # SMP make doesn't seem to work make cppcheck