We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
validatePlatforms
1 parent f9b96a2 commit e8cf7bdCopy full SHA for e8cf7bd
1 file changed
CMakeLists.txt
@@ -31,6 +31,13 @@ if (LIBXML2_XMLLINT_EXECUTABLE)
31
add_dependencies(validateCFG validateCFG-${cfgname})
32
endforeach()
33
34
+ add_custom_target(validatePlatforms ${LIBXML2_XMLLINT_EXECUTABLE} --noout ${CMAKE_SOURCE_DIR}/platforms/cppcheck-platforms.rng)
35
+ foreach(platform ${platforms})
36
+ get_filename_component(platformname ${platform} NAME_WE)
37
+ add_custom_target(validatePlatforms-${platformname} ${LIBXML2_XMLLINT_EXECUTABLE} --noout --relaxng ${CMAKE_SOURCE_DIR}/platforms/cppcheck-platforms.rng ${platform})
38
+ add_dependencies(validatePlatforms validatePlatforms-${platformname})
39
+ endforeach()
40
+
41
add_custom_target(errorlist-xml $<TARGET_FILE:cppcheck> --errorlist > ${CMAKE_BINARY_DIR}/errorlist.xml
42
DEPENDS cppcheck)
43
0 commit comments