diff --git a/CMakeLists.txt b/CMakeLists.txt index e907fa05d..a045c60b1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,12 @@ project(openvino_tokenizers) include(cmake/platforms.cmake) -find_package(OpenVINO REQUIRED COMPONENTS Runtime OPTIONAL_COMPONENTS TensorFlow) +# Find OpenVINODeveloperPackage first to compile with SDL flags +find_package(OpenVINODeveloperPackage QUIET + PATHS "${OpenVINO_DIR}") +if(NOT OpenVINODeveloperPackage_FOUND) + find_package(OpenVINO REQUIRED COMPONENTS Runtime OPTIONAL_COMPONENTS TensorFlow) +endif() # set the project version using OpenVINO major, minor and patch versions set(CMAKE_PROJECT_VERSION_TWEAK 0)