2024-12-09 20:42:39 +01:00
|
|
|
diff --git a/cdk/cmake/DepFindProtobuf.cmake b/cdk/cmake/DepFindProtobuf.cmake
|
2024-12-12 21:22:52 +01:00
|
|
|
index 1fc785e..2ba7e99 100644
|
2024-12-09 20:42:39 +01:00
|
|
|
--- a/cdk/cmake/DepFindProtobuf.cmake
|
|
|
|
+++ b/cdk/cmake/DepFindProtobuf.cmake
|
2024-12-12 21:22:52 +01:00
|
|
|
@@ -44,9 +44,9 @@
|
|
|
|
#
|
2024-12-09 20:42:39 +01:00
|
|
|
#
|
|
|
|
|
2024-12-12 21:22:52 +01:00
|
|
|
-if(TARGET ext::protobuf)
|
|
|
|
+if(COMMAND mysqlx_protobuf_generate_cpp)
|
|
|
|
return()
|
2024-12-09 20:42:39 +01:00
|
|
|
-endif()
|
2024-12-12 21:22:52 +01:00
|
|
|
+elseif(0)
|
2024-12-09 20:42:39 +01:00
|
|
|
|
|
|
|
message(STATUS "Setting up Protobuf.")
|
|
|
|
|
2024-12-12 21:22:52 +01:00
|
|
|
@@ -66,6 +66,7 @@ add_ext_targets(protobuf
|
2024-12-09 20:42:39 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
2024-12-12 21:22:52 +01:00
|
|
|
+endif()
|
2024-12-09 20:42:39 +01:00
|
|
|
# Standard PROTOBUF_GENERATE_CPP modified to our usage
|
|
|
|
function(mysqlx_protobuf_generate_cpp SRCS HDRS)
|
2024-12-12 21:22:52 +01:00
|
|
|
IF(NOT ARGN)
|