Blame SOURCES/cppcheck-1.78-cfgdir.patch

97d94d
diff -up cppcheck-1.78/CMakeLists.txt.orig cppcheck-1.78/CMakeLists.txt
97d94d
diff -up cppcheck-1.78/cmake/options.cmake.orig cppcheck-1.78/cmake/options.cmake
97d94d
--- cppcheck-1.78/cmake/options.cmake.orig	2017-04-01 11:05:13.000000000 +0200
97d94d
+++ cppcheck-1.78/cmake/options.cmake	2017-04-09 14:13:30.130818011 +0200
97d94d
@@ -23,6 +23,11 @@ option(ANALYZE_DATAFLOW     "Clang dynam
97d94d
 option(WARNINGS_ARE_ERRORS  "Treat warnings as errors"                                      OFF)
97d94d
 option(WARNINGS_ANSI_ISO    "Issue all the mandatory diagnostics Listed in C standard"      ON)
97d94d
 
97d94d
+option(CFGDIR "Configuration file directory"                                      OFF)
97d94d
+if(CFGDIR)
97d94d
+    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DCFG=${CFGDIR}")
97d94d
+endif(CFGDIR)
97d94d
+
97d94d
 set(USE_MATCHCOMPILER "Auto" CACHE STRING "Usage of match compliler")
97d94d
 set_property(CACHE USE_MATCHCOMPILER PROPERTY STRINGS Auto Off On Verify) 
97d94d
 if (USE_MATCHCOMPILER STREQUAL "Auto")