Blame SOURCES/cppcheck-1.83-tinyxml.patch

97d94d
--- cppcheck-1.83.orig/cli/CMakeLists.txt	2018-04-02 03:02:50.000000000 -0400
97d94d
+++ cppcheck-1.83.orig/cli/CMakeLists.txt	2018-04-12 12:46:04.990212969 -0400
97d94d
@@ -1,5 +1,4 @@ 
97d94d
 include_directories(${PROJECT_SOURCE_DIR}/lib/)
97d94d
-include_directories(SYSTEM ${PROJECT_SOURCE_DIR}/externals/tinyxml/)
97d94d
 include_directories(${PROJECT_SOURCE_DIR}/externals/simplecpp/)
97d94d
 
97d94d
 file(GLOB hdrs "*.h")
97d94d
@@ -8,13 +7,14 @@ 
97d94d
 list(REMOVE_ITEM srcs ${mainfile})
97d94d
 
97d94d
 add_library(cli_objs OBJECT ${hdrs} ${srcs}) 
97d94d
-add_executable(cppcheck ${hdrs} ${mainfile} $<TARGET_OBJECTS:cli_objs> $<TARGET_OBJECTS:lib_objs> $<TARGET_OBJECTS:tinyxml_objs> $<TARGET_OBJECTS:simplecpp_objs>)
97d94d
+add_executable(cppcheck ${hdrs} ${mainfile} $<TARGET_OBJECTS:cli_objs> $<TARGET_OBJECTS:lib_objs> $<TARGET_OBJECTS:simplecpp_objs>)
97d94d
 if (HAVE_RULES)
97d94d
     target_link_libraries(cppcheck pcre)
97d94d
 endif()
97d94d
 if (MSVC)
97d94d
     target_link_libraries(cppcheck Shlwapi.lib)
97d94d
 endif()
97d94d
+target_link_libraries(cppcheck tinyxml2)
97d94d
 
97d94d
 install(TARGETS cppcheck
97d94d
     RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_BINDIR}
97d94d
--- cppcheck-1.83.orig/CMakeLists.txt	2018-04-02 03:02:50.000000000 -0400
97d94d
+++ cppcheck-1.83.orig/CMakeLists.txt	2018-04-12 12:45:04.959219411 -0400
97d94d
@@ -16,7 +16,6 @@ 
97d94d
     enable_testing()
97d94d
 endif()
97d94d
 
97d94d
-add_subdirectory(externals/tinyxml)
97d94d
 add_subdirectory(externals/simplecpp)
97d94d
 add_subdirectory(lib)   # CppCheck Library 
97d94d
 add_subdirectory(cli)   # Client application
97d94d
--- cppcheck-1.83.orig/gui/CMakeLists.txt	2018-04-02 03:02:50.000000000 -0400
97d94d
+++ cppcheck-1.83.orig/gui/CMakeLists.txt	2018-04-12 12:45:04.959219411 -0400
97d94d
@@ -10,7 +10,6 @@ 
97d94d
     endif()
97d94d
 
97d94d
     include_directories(${PROJECT_SOURCE_DIR}/lib/)
97d94d
-    include_directories(SYSTEM ${PROJECT_SOURCE_DIR}/externals/tinyxml/)
97d94d
 
97d94d
     file(GLOB hdrs "*.h")
97d94d
     file(GLOB srcs "*.cpp")
97d94d
@@ -20,10 +19,11 @@ 
97d94d
     QT5_ADD_RESOURCES(resources "gui.qrc")
97d94d
     QT5_ADD_TRANSLATION(qms ${tss})
97d94d
 
97d94d
-    add_executable(cppcheck-gui ${hdrs} ${srcs} ${uis_hdrs} ${resources} ${qms} $<TARGET_OBJECTS:lib_objs> $<TARGET_OBJECTS:tinyxml_objs> $<TARGET_OBJECTS:simplecpp_objs>)
97d94d
+    add_executable(cppcheck-gui ${hdrs} ${srcs} ${uis_hdrs} ${resources} ${qms} $<TARGET_OBJECTS:lib_objs> $<TARGET_OBJECTS:simplecpp_objs>)
97d94d
     if (HAVE_RULES)
97d94d
         target_link_libraries(cppcheck-gui pcre)
97d94d
     endif()
97d94d
+    target_link_libraries(cppcheck-gui tinyxml2)
97d94d
     qt5_use_modules(cppcheck-gui ${GUI_QT_COMPONENTS})
97d94d
 
97d94d
     install(TARGETS cppcheck-gui RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_BINDIR} COMPONENT applications)
97d94d
--- cppcheck-1.83.orig/test/CMakeLists.txt	2018-04-02 03:02:50.000000000 -0400
97d94d
+++ cppcheck-1.83.orig/test/CMakeLists.txt	2018-04-12 12:45:04.959219411 -0400
97d94d
@@ -1,16 +1,16 @@ 
97d94d
 if (BUILD_TESTS)
97d94d
 
97d94d
     include_directories(${PROJECT_SOURCE_DIR}/lib/ ${PROJECT_SOURCE_DIR}/cli/)
97d94d
-    include_directories(SYSTEM ${PROJECT_SOURCE_DIR}/externals/tinyxml)
97d94d
     include_directories(${PROJECT_SOURCE_DIR}/externals/simplecpp/)
97d94d
 
97d94d
     file(GLOB hdrs "*.h")
97d94d
     file(GLOB srcs "*.cpp")
97d94d
 
97d94d
-    add_executable(testrunner ${hdrs} ${srcs} $<TARGET_OBJECTS:lib_objs> $<TARGET_OBJECTS:cli_objs> $<TARGET_OBJECTS:tinyxml_objs> $<TARGET_OBJECTS:simplecpp_objs>)
97d94d
+    add_executable(testrunner ${hdrs} ${srcs} $<TARGET_OBJECTS:lib_objs> $<TARGET_OBJECTS:cli_objs> $<TARGET_OBJECTS:simplecpp_objs>)
97d94d
     if (HAVE_RULES)
97d94d
         target_link_libraries(testrunner pcre)
97d94d
     endif()
97d94d
+    target_link_libraries(testrunner tinyxml2)
97d94d
 
97d94d
     add_custom_target(copy_cfg ALL
97d94d
         COMMENT "Copying cfg files")