Skip to content

Commit

Permalink
Suppress warnings from 3rd party headers (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-lavrenov authored Nov 13, 2024
1 parent 3fe6677 commit 555ce2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function(ov_tokenizers_link_sentencepiece TARGET_NAME)
endforeach()
target_link_libraries(${TARGET_NAME} PRIVATE absl::string_view absl::flat_hash_set)
else()
target_include_directories(${TARGET_NAME} PRIVATE
target_include_directories(${TARGET_NAME} SYSTEM PRIVATE
"${sentencepiece_SOURCE_DIR}/src/builtin_pb"
"${sentencepiece_SOURCE_DIR}/src"
"${sentencepiece_SOURCE_DIR}/third_party/protobuf-lite"
Expand Down Expand Up @@ -335,7 +335,7 @@ endif()

function(ov_tokenizers_link_fast_tokenizer TARGET_NAME)
if(ENABLE_FAST_TOKENIZERS)
target_include_directories(${TARGET_NAME} PRIVATE ${FAST_TOKENIZER_INCS})
target_include_directories(${TARGET_NAME} SYSTEM PRIVATE ${FAST_TOKENIZER_INCS})
target_link_libraries(${TARGET_NAME} PRIVATE ${FAST_TOKENIZER_LIBS})
target_compile_definitions(${TARGET_NAME} PRIVATE ENABLE_FAST_TOKENIZERS)
else()
Expand All @@ -362,7 +362,7 @@ function(ov_tokenizers_link_pcre2 TARGET_NAME)
add_subdirectory(${prce2_SOURCE_DIR} ${prce2_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()

target_include_directories(${TARGET_NAME} PRIVATE ${pcre2_BINARY_DIR})
target_include_directories(${TARGET_NAME} SYSTEM PRIVATE ${pcre2_BINARY_DIR})
target_link_libraries(${TARGET_NAME} PRIVATE pcre2-8)
target_compile_definitions(${TARGET_NAME} PRIVATE PCRE2_CODE_UNIT_WIDTH=8)
endfunction()
Expand Down

0 comments on commit 555ce2d

Please sign in to comment.