summaryrefslogtreecommitdiff
path: root/dev-build/ignition-cmake/files/protobuf2.patch
blob: 1c28803e7ff0b51c3fb50a11c924892626bb20a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 "")