Skip to content

Commit

Permalink
unwind find_package for now
Browse files Browse the repository at this point in the history
  • Loading branch information
dovholuknf committed Jun 27, 2024
1 parent 86a90a8 commit b092890
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if (NOT sodium_libs)
message(FATAL_ERROR "could not find required library[sodium]")
endif ()

find_package(Protobuf REQUIRED)
pkg_check_modules(PBUFC REQUIRED IMPORTED_TARGET libprotobuf-c)

if (ziti_DEVELOPER_MODE)
find_program(PROTO_GEN protoc)
Expand Down Expand Up @@ -76,8 +76,11 @@ SET(ZITI_SRC_FILES
authenticators.c
crypto.c
bind.c
oidc.c
proto/edge_client.pb-c.c
proto/google/protobuf/timestamp.pb-c.c
legacy_auth.c
ha_auth.c
util/future.c
)

Expand Down Expand Up @@ -117,7 +120,7 @@ function(config_ziti_library target)
tlsuv
${sodium_libs}
json-c::json-c
protobuf::libprotobuf
PkgConfig::PBUFC
)

if (CMAKE_SYSTEM_NAME MATCHES "Linux")
Expand Down

0 comments on commit b092890

Please sign in to comment.