Skip to content

Commit df5726b

Browse files
committed
Bump minimum cmake version to 3.5 to avoid deprecation warning
Building msgpack gives currently gives the following warning: "CMake Deprecation Warning at CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument <min> value or use a ...<max> suffix to tell CMake that the project does not need compatibility with older versions."
1 parent 3a41b24 commit df5726b

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

CMakeLists.txt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
CMAKE_MINIMUM_REQUIRED (VERSION 2.8.12)
2-
3-
IF ((CMAKE_VERSION VERSION_GREATER 3.1) OR
4-
(CMAKE_VERSION VERSION_EQUAL 3.1))
5-
CMAKE_POLICY(SET CMP0054 NEW)
6-
ENDIF ()
1+
CMAKE_MINIMUM_REQUIRED (VERSION 3.5)
2+
CMAKE_POLICY(SET CMP0060 OLD)
73

84
OPTION (MSGPACK_BUILD_TESTS "Build msgpack tests." OFF)
95
OPTION (MSGPACK_GEN_COVERAGE "Enable running gcov to get a test coverage report." OFF)
@@ -38,7 +34,7 @@ IF (BIGENDIAN)
3834
SET(MSGPACK_ENDIAN_LITTLE_BYTE 0)
3935
ELSE ()
4036
SET(MSGPACK_ENDIAN_BIG_BYTE 0)
41-
SET(MSGPACK_ENDIAN_LITTLE_BYTE 1)
37+
SET(MSGPACK_ENDIAN_LITTLE_BYTE 1)
4238
ENDIF ()
4339

4440
CONFIGURE_FILE (

example/cmake/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.0)
1+
cmake_minimum_required (VERSION 3.5)
22
project (example)
33

44
if(EXAMPLE_MSGPACK_EMBEDDED)

0 commit comments

Comments
 (0)