File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -669,7 +669,7 @@ ELSE()
669
669
ELSE ()
670
670
add_library (MNN STATIC ${CMAKE_CURRENT_LIST_DIR} /cmake/dummy.cpp ${MNN_OBJECTS_TO_LINK} ${MNN_PUB_HDRS} ${MNN_EXPR_PUB_HDRS} )
671
671
ENDIF ()
672
- # target_link_libraries(MNN PUBLIC ${MNN_EXTRA_DEPENDS})
672
+ target_link_libraries (MNN PUBLIC $< BUILD_INTERFACE: $ {MNN_EXTRA_DEPENDS}> )
673
673
ENDIF ()
674
674
if (MSVC )
675
675
target_link_options (MNN PRIVATE "/IGNORE:4049,4217" )
Original file line number Diff line number Diff line change 7
7
8
8
include_directories ("./" )
9
9
if (MNN_USE_SYSTEM_LIB )
10
- find_package (Vulkan REQUIRED GLOBAL )
11
- set (MNN_VULKAN_LIBS Vulkan::Vulkan PARENT_SCOPE )
10
+ find_package (Vulkan REQUIRED )
11
+ set (MNN_VULKAN_LIBS ${Vulkan_LIBRARIES} PARENT_SCOPE )
12
12
else ()
13
13
add_definitions (-DMNN_USE_LIB_WRAPPER )
14
14
endif ()
You can’t perform that action at this time.
0 commit comments