Skip to content

Commit

Permalink
Another trial
Browse files Browse the repository at this point in the history
  • Loading branch information
itsafuu committed Nov 30, 2024
1 parent 54e629f commit 3dd9ac0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 $<BUILD_INTERFACE:${MNN_EXTRA_DEPENDS}>)
ENDIF()
if (MSVC)
target_link_options(MNN PRIVATE "/IGNORE:4049,4217")
Expand Down
4 changes: 2 additions & 2 deletions source/backend/vulkan/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3dd9ac0

Please sign in to comment.