summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-build/ignition-cmake/files/protobuf2.patch')
-rw-r--r--dev-build/ignition-cmake/files/protobuf2.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-build/ignition-cmake/files/protobuf2.patch b/dev-build/ignition-cmake/files/protobuf2.patch
new file mode 100644
index 000000000000..1c28803e7ff0
--- /dev/null
+++ b/dev-build/ignition-cmake/files/protobuf2.patch
@@ -0,0 +1,13 @@
+Index: gz-cmake-ignition-cmake2_2.17.2/cmake/FindIgnProtobuf.cmake
+===================================================================
+--- gz-cmake-ignition-cmake2_2.17.2.orig/cmake/FindIgnProtobuf.cmake
++++ gz-cmake-ignition-cmake2_2.17.2/cmake/FindIgnProtobuf.cmake
+@@ -31,7 +31,7 @@ find_package(Protobuf ${IgnProtobuf_FIND
+ if(NOT ${Protobuf_FOUND})
+ # If a config-file was not found, then fall back on the system-installed
+ # find-module that comes with CMake.
+- find_package(Protobuf ${IgnProtobuf_FIND_VERSION})
++ find_package(Protobuf CONFIG REQUIRED)
+ endif()
+
+ set(IgnProtobuf_missing_components "")