diff --git a/CMakeLists.txt b/CMakeLists.txt index b0b6fc884..3eba95808 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,9 +1,5 @@ -CMAKE_MINIMUM_REQUIRED (VERSION 2.8.12) - -IF ((CMAKE_VERSION VERSION_GREATER 3.1) OR - (CMAKE_VERSION VERSION_EQUAL 3.1)) - CMAKE_POLICY(SET CMP0054 NEW) -ENDIF () +CMAKE_MINIMUM_REQUIRED (VERSION 3.5) +CMAKE_POLICY(SET CMP0060 OLD) OPTION (MSGPACK_BUILD_TESTS "Build msgpack tests." OFF) OPTION (MSGPACK_GEN_COVERAGE "Enable running gcov to get a test coverage report." OFF) @@ -38,7 +34,7 @@ IF (BIGENDIAN) SET(MSGPACK_ENDIAN_LITTLE_BYTE 0) ELSE () SET(MSGPACK_ENDIAN_BIG_BYTE 0) - SET(MSGPACK_ENDIAN_LITTLE_BYTE 1) + SET(MSGPACK_ENDIAN_LITTLE_BYTE 1) ENDIF () CONFIGURE_FILE ( diff --git a/example/cmake/CMakeLists.txt b/example/cmake/CMakeLists.txt index cdd65fd3b..d14424ac3 100644 --- a/example/cmake/CMakeLists.txt +++ b/example/cmake/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required (VERSION 3.0) +cmake_minimum_required (VERSION 3.5) project (example) if(EXAMPLE_MSGPACK_EMBEDDED)