diff --git a/CMakeLists.txt b/CMakeLists.txt index 98b40cb04..10277d4fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -669,7 +669,7 @@ ELSE() ELSE() add_library(MNN STATIC ${CMAKE_CURRENT_LIST_DIR}/cmake/dummy.cpp ${MNN_OBJECTS_TO_LINK} ${MNN_PUB_HDRS} ${MNN_EXPR_PUB_HDRS}) ENDIF() - #target_link_libraries(MNN PUBLIC ${MNN_EXTRA_DEPENDS}) + target_link_libraries(MNN PUBLIC $) ENDIF() if (MSVC) target_link_options(MNN PRIVATE "/IGNORE:4049,4217") diff --git a/source/backend/vulkan/CMakeLists.txt b/source/backend/vulkan/CMakeLists.txt index 22a6ee841..9504a1ec2 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 GLOBAL) - set(MNN_VULKAN_LIBS Vulkan::Vulkan PARENT_SCOPE) + find_package(Vulkan REQUIRED) + set(MNN_VULKAN_LIBS ${Vulkan_LIBRARIES} PARENT_SCOPE) else() add_definitions(-DMNN_USE_LIB_WRAPPER) endif()