We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57859e3 commit 7c5a7bdCopy full SHA for 7c5a7bd
cmake/modules/Findre2.cmake
@@ -18,6 +18,13 @@ if(re2_FOUND)
18
return()
19
endif()
20
21
+# As per https://github.com/grpc/grpc/issues/25434, idempotence is necessary
22
+# because CMake fails when another target with the same name already exists.
23
+if(TARGET re2::re2)
24
+ message(STATUS "Found RE2 via pkg-config already?")
25
+ return()
26
+endif()
27
+
28
find_package(PkgConfig REQUIRED)
29
# TODO(junyer): Use the IMPORTED_TARGET option whenever CMake 3.6 (or newer)
30
# becomes the minimum required: that will take care of the add_library() and
0 commit comments