Skip to content

Commit

Permalink
winmm fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim-Doronin committed Oct 17, 2024
1 parent 369948f commit b380d9a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/plugins/intel_npu/tools/protopipe/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ if(OpenCV_VERSION VERSION_LESS 4.9)
return()
endif()

if (WIN32)
# WA: add_tool_target expects to have all dependencies as cmake targets.
add_library(winmm INTERFACE)
target_link_libraries(winmm INTERFACE "winmm.lib")
endif()

#
# Define the target
#
Expand All @@ -40,14 +46,10 @@ ov_add_target(ADD_CPPLINT
gflags
yaml-cpp
openvino::runtime
opencv_gapi)
opencv_gapi
winmm)


if (WIN32)
# WA: add_tool_target expects to have all dependencies as cmake targets.
add_library(winmm INTERFACE)
target_link_libraries(winmm INTERFACE "winmm.lib")
list(APPEND DEPENDENCIES winmm)
endif()

set_target_properties(${TARGET_NAME} PROPERTIES
FOLDER ${CMAKE_CURRENT_SOURCE_DIR}
Expand Down

0 comments on commit b380d9a

Please sign in to comment.