diff --git a/CMakeLists.txt b/CMakeLists.txt index 9983eae10..26372918b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.6) +cmake_minimum_required(VERSION 3.24) # Versioning stuff file(STRINGS "${CMAKE_CURRENT_LIST_DIR}/include/MNN/MNNDefine.h" MNN_DEFINE) string(REGEX MATCH "MNN_VERSION_MAJOR [0-9]+" MNN_VERSION_MAJOR_DEFINE ${MNN_DEFINE}) diff --git a/source/backend/vulkan/CMakeLists.txt b/source/backend/vulkan/CMakeLists.txt index 555738aa7..71d2adb29 100644 --- a/source/backend/vulkan/CMakeLists.txt +++ b/source/backend/vulkan/CMakeLists.txt @@ -7,8 +7,8 @@ endif() include_directories("./") if(MNN_USE_SYSTEM_LIB) - find_package(Vulkan REQUIRED) - set(MNN_VULKAN_LIBS ${Vulkan_LIBRARIES} PARENT_SCOPE) + find_package(Vulkan REQUIRED GLOBAL) + set(MNN_VULKAN_LIBS Vulkan::Vulkan PARENT_SCOPE) else() add_definitions(-DMNN_USE_LIB_WRAPPER) endif()