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 c7528889a6
PiperOrigin-RevId: 518185074
pull/12295/head
Joris Clement 2 years ago committed by Copybara-Service
parent decc1b5708
commit 38ab857472
  1. 2
      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)

Loading…
Cancel
Save