Auto-update cppcheck to 2.14.0 (#4026)

* Update cppcheck to 2.14.0

* Update xmake.lua

---------

Co-authored-by: star9029 <hengxings783@gmail.com>
pull/4030/head
ruki 8 months ago committed by GitHub
parent ed434ac0b2
commit b55b0fa345
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      packages/c/cppcheck/xmake.lua

@ -10,7 +10,13 @@ package("cppcheck")
add_deps("cmake") add_deps("cmake")
on_install("windows|x64", "macosx", "linux", "msys", function (package) on_install("windows|x64", "macosx", "linux", "msys", function (package)
import("package.tools.cmake").install(package) local configs = {}
if package:is_plat("windows") then
table.insert(configs, "-DCMAKE_COMPILE_PDB_OUTPUT_DIRECTORY=''")
end
io.replace("cmake/compileroptions.cmake", "add_compile_options($<$<NOT:$<CONFIG:Debug>>:/MD>)", "", {plain = true})
import("package.tools.cmake").install(package, configs)
end) end)
on_test(function (package) on_test(function (package)

Loading…
Cancel
Save