Skip to content

Commit 109e473

Browse files
authored
let cmake know the project is aware of new version and stop throwing warnings (#5848)
1 parent f3651ce commit 109e473

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ set(NCNN_VERSION_PATCH ${NCNN_VERSION})
2121
set(NCNN_VERSION_STRING ${NCNN_VERSION_MAJOR}.${NCNN_VERSION_MINOR}.${NCNN_VERSION_PATCH})
2222
message(STATUS "NCNN_VERSION_STRING = ${NCNN_VERSION_STRING}")
2323

24-
cmake_minimum_required(VERSION 2.8.12)
24+
cmake_minimum_required(VERSION 2.8.12...3.10)
2525

2626
if(NOT CMAKE_BUILD_TYPE)
2727
set(CMAKE_BUILD_TYPE release CACHE STRING "Choose the type of build" FORCE)

python/CMakeLists.txt

+1-1
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.4...3.10)
22

33
project(pyncnn)
44

tools/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.1) # for CMAKE_CXX_STANDARD
1+
cmake_minimum_required(VERSION 3.1...3.10) # for CMAKE_CXX_STANDARD
22
set(CMAKE_CXX_STANDARD 11)
33

44
include(GNUInstallDirs)

0 commit comments

Comments
 (0)