protobuf-cpp: fix debug mode link (#2282)

pull/2290/head
Bai Miao 1 year ago committed by GitHub
parent 9cb80b44aa
commit 3be9c91f9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      packages/p/protobuf-cpp/xmake.lua

@ -39,6 +39,7 @@ package("protobuf-cpp")
on_install("windows", "linux", "macosx", function (package)
os.cd("cmake")
io.replace("CMakeLists.txt", "set(protobuf_DEBUG_POSTFIX \"d\"", "set(protobuf_DEBUG_POSTFIX \"\"", {plain = true})
local configs = {"-Dprotobuf_BUILD_TESTS=OFF", "-Dprotobuf_BUILD_PROTOC_BINARIES=ON"}
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
if package:is_plat("windows") then

Loading…
Cancel
Save