Use find_package(Protobuf CONFIG) for macOS too

This commit is contained in:
Jonas Kvinge
2023-07-11 13:42:15 +02:00
parent 0c1f4750ea
commit 7616c06ff9
3 changed files with 3 additions and 5 deletions

View File

@@ -117,9 +117,7 @@ else()
find_package(Iconv)
endif()
find_package(GnuTLS REQUIRED)
if(NOT APPLE)
find_package(Protobuf CONFIG)
endif()
find_package(Protobuf CONFIG)
if(NOT Protobuf_FOUND)
find_package(Protobuf REQUIRED)
endif()