From 38ab8574725411b02437b5d157e01c606cf99cf5 Mon Sep 17 00:00:00 2001 From: Joris Clement <7713214+joclement@users.noreply.github.com> Date: Mon, 20 Mar 2023 23:41:26 -0700 Subject: [PATCH] Make warning message type more specific (#12272) The minimum required CMake version is 3.5. Thus, this message type is supported. Ref.: https://cmake.org/cmake/help/v3.5/command/message.html Closes #12272 COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/12272 from joclement:patch-1 c7528889a61efe8bd8225a6611945731ffd6c4ee PiperOrigin-RevId: 518185074 --- cmake/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 4e39573586..3849985461 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.5) -message(WARNING "Calling of cmake with source directory set to \"cmake\" subdirectory of Protocol Buffers project is deprecated. Top-level directory of Protocol Buffers project should be used instead.") +message(DEPRECATION "Calling of cmake with source directory set to \"cmake\" subdirectory of Protocol Buffers project is deprecated. Top-level directory of Protocol Buffers project should be used instead.") project(protobuf C CXX)