Skip to content

Commit

Permalink
Suppressed warnings in Java API
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-lavrenov committed Sep 13, 2023
1 parent 62b770c commit fbbea71
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/java_api/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ if(NOT OpenVINODeveloperPackage_FOUND)
find_package(OpenVINO REQUIRED)
endif()

if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
# 'argument': conversion from 'size_t' to 'int', possible loss of data
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4267")
endif()

file(GLOB_RECURSE sources ${CMAKE_CURRENT_SOURCE_DIR}/src/main/cpp/*.cpp)

add_library(${PROJECT_NAME} SHARED ${sources})
Expand Down

0 comments on commit fbbea71

Please sign in to comment.