Skip to content

Commit 67d362c

Browse files
[Capnproto] Fixed CMake Compatibility Error
On CI, A CMake deprecation error occurs since CMake version < 3.5 will be removed in a future version of CMake. On the dev branch of CapNProto, they fixed this issue by setting the minimum CMake version to 3.16: capnproto/capnproto@2354ae2 Replicated these changes locally. Hopefully the next time we upgrade CapNProto this will be in the changes.
1 parent 42ef60f commit 67d362c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

libs/EXTERNAL/capnproto/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.4)
1+
cmake_minimum_required(VERSION 3.16)
22
project("Cap'n Proto Root" CXX)
33
include(CTest)
44

libs/EXTERNAL/capnproto/c++/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.6)
1+
cmake_minimum_required(VERSION 3.16)
22
project("Cap'n Proto" CXX)
33
set(VERSION 1.0.2)
44

libs/EXTERNAL/capnproto/c++/samples/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# cmake --build .
1818

1919
project("Cap'n Proto Samples" CXX)
20-
cmake_minimum_required(VERSION 3.1)
20+
cmake_minimum_required(VERSION 3.16)
2121

2222
find_package(CapnProto CONFIG REQUIRED)
2323

libs/EXTERNAL/capnproto/doc/install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ If you want to use Cap'n Proto in C++ with Visual Studio, do the following:
116116
Proto uses C++14 language features that did not work in previous versions of Visual Studio,
117117
and the updates include many bug fixes that Cap'n Proto requires.
118118

119-
2. Install [CMake](http://www.cmake.org/) version 3.1 or later.
119+
2. Install [CMake](http://www.cmake.org/) version 3.16 or later.
120120

121121
3. Use CMake to generate Visual Studio project files under `capnproto-c++-1.0.2` in the zip file.
122122
You can use the CMake UI for this or run this shell command:

0 commit comments

Comments
 (0)