Skip to content

Extract IE version from IE cmake config#20026

Merged
alalek merged 2 commits intoopencv:masterfrom
ilya-lavrenov:inference-engine-version-from-cmake
May 24, 2021
Merged

Extract IE version from IE cmake config#20026
alalek merged 2 commits intoopencv:masterfrom
ilya-lavrenov:inference-engine-version-from-cmake

Conversation

@ilya-lavrenov
Copy link
Copy Markdown
Contributor

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or other license that is incompatible with OpenCV
  • The PR is proposed to proper branch
  • There is reference to original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

Based on ilya-lavrenov/openvino#19 which is going to be merged after openvinotoolkit/openvino#5484

CC @dkurt @alalek, please, comment before we commit changes to OpenVINO

@ilya-lavrenov ilya-lavrenov force-pushed the inference-engine-version-from-cmake branch from 3f58b7a to 1fc23f6 Compare May 3, 2021 13:02
@ilya-lavrenov ilya-lavrenov force-pushed the inference-engine-version-from-cmake branch from b1b5660 to 4772981 Compare May 4, 2021 14:19
@ilya-lavrenov ilya-lavrenov requested a review from mshabunin May 4, 2021 14:20
Copy link
Copy Markdown
Member

@alalek alalek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

Please remove "draft" status when PR is ready.

if(INF_ENGINE_TARGET)
if(InferenceEngine_VERSION VERSION_GREATER_EQUAL "2021.4")
math(EXPR INF_ENGINE_RELEASE "${InferenceEngine_VERSION_MAJOR} * 1000000 + ${InferenceEngine_VERSION_MINOR} * 10000 + ${InferenceEngine_VERSION_PATCH} * 100")
endif()
Copy link
Copy Markdown
Member

@alalek alalek May 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, It makes sense to emit warning if there is passed wrong value through CMake's command-line (need to think how to ignore/handle "patch" version here in this comparison).

(backlog)

@alalek
Copy link
Copy Markdown
Member

alalek commented May 21, 2021

Please remove "draft" status when PR is ready.

@ilya-lavrenov Is this PR ready?

@ilya-lavrenov ilya-lavrenov force-pushed the inference-engine-version-from-cmake branch from 4772981 to cddfa82 Compare May 24, 2021 10:21
@ilya-lavrenov ilya-lavrenov marked this pull request as ready for review May 24, 2021 10:21
ilya-lavrenov and others added 2 commits May 24, 2021 13:27
@alalek alalek merged commit 1e1ddd3 into opencv:master May 24, 2021
@ilya-lavrenov ilya-lavrenov deleted the inference-engine-version-from-cmake branch May 25, 2021 07:49
@alalek alalek mentioned this pull request Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: build/install category: dnn port/backport done Label for maintainers. Authors of PR can ignore this

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants