Proper cmake version for pcapplusplus (#5764)

* Proper cmake version for pcapplusplus

* Update xmake.lua

---------

Co-authored-by: ruki <waruqi@gmail.com>
pull/5579/head^2
jj683 2 weeks ago committed by GitHub
parent ae689d391a
commit c03e5cbe1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      packages/p/pcapplusplus/xmake.lua

@ -34,10 +34,12 @@ package("pcapplusplus")
on_install("windows", "mingw", "linux", "macosx", "android", "bsd", function (package)
local configs = {
"-DPCAPPP_BUILD_EXAMPLES=OFF",
"-DPCAPPP_BUILD_TESTS=OFF",
"--compile-no-warning-as-error",
"-DPCAPPP_BUILD_TESTS=OFF"
}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
for _, cmakefile in ipairs(os.files("**/CMakeLists.txt")) do
io.replace(cmakefile, "COMPILE_WARNING_AS_ERROR ON", "COMPILE_WARNING_AS_ERROR OFF")
end
import("package.tools.cmake").install(package, configs)
end)

Loading…
Cancel
Save