fix : xmake link openssl in macos

This commit is contained in:
Chanchan
2022-12-12 12:06:05 +08:00
parent 73b04682ba
commit c13addbeac
5 changed files with 1 additions and 11 deletions

View File

@@ -3,9 +3,6 @@ set_default(false)
add_deps("workflow")
add_links("crypto")
add_links("ssl")
if not is_os("macosx") then
add_ldflags("-lrt")
end

View File

@@ -1,8 +1,5 @@
includes("**/xmake.lua")
add_links("crypto")
add_links("ssl")
target("workflow")
if (get_config("type") == "static") then
set_kind("static")

View File

@@ -6,8 +6,6 @@ add_requires("gtest")
add_deps("workflow")
add_packages("gtest")
add_links("crypto")
add_links("ssl")
add_links("gtest_main")
if not is_os("macosx") then

View File

@@ -5,9 +5,6 @@ if not is_os("macosx") then
add_ldflags("-lrt")
end
add_links("crypto")
add_links("ssl")
function all_examples()
local res = {}
for _, x in ipairs(os.files("*.cc")) do

View File

@@ -62,6 +62,7 @@ option("type")
option_end()
add_requires("openssl")
add_packages("openssl", {links = "ssl", "crypto"})
add_syslinks("pthread")
if (get_config("kafka") == true) then