|
@@ -5,7 +5,11 @@ project(QtProtobufProject VERSION ${QTPROTOBUF_PROJECT_VERSION} LANGUAGES CXX)
|
|
|
set(QTPROTOBUF_COMMON_NAMESPACE QtProtobufProject)
|
|
|
|
|
|
include(GNUInstallDirs)
|
|
|
-find_package(Protobuf REQUIRED CONFIG)
|
|
|
+
|
|
|
+find_package(Protobuf CONFIG)
|
|
|
+if(NOT Protobuf_FOUND)
|
|
|
+ find_package(Protobuf MODULE)
|
|
|
+endif()
|
|
|
|
|
|
# FIXME: what is the reason to set these variables in root CMake?
|
|
|
|