mirror of
https://github.com/opencv/opencv.git
synced 2025-06-09 02:23:23 +08:00
parent
1cc1e6fa56
commit
ef68cc3d5f
@ -135,9 +135,9 @@ endif()
|
|||||||
|
|
||||||
if(INF_ENGINE_TARGET)
|
if(INF_ENGINE_TARGET)
|
||||||
if(NOT INF_ENGINE_RELEASE)
|
if(NOT INF_ENGINE_RELEASE)
|
||||||
message(WARNING "InferenceEngine version has not been set, 2020.1 will be used by default. Set INF_ENGINE_RELEASE variable if you experience build errors.")
|
message(WARNING "InferenceEngine version has not been set, 2020.2 will be used by default. Set INF_ENGINE_RELEASE variable if you experience build errors.")
|
||||||
endif()
|
endif()
|
||||||
set(INF_ENGINE_RELEASE "2020010000" CACHE STRING "Force IE version, should be in form YYYYAABBCC (e.g. 2020.1.0.2 -> 2020010002)")
|
set(INF_ENGINE_RELEASE "2020020000" CACHE STRING "Force IE version, should be in form YYYYAABBCC (e.g. 2020.1.0.2 -> 2020010002)")
|
||||||
set_target_properties(${INF_ENGINE_TARGET} PROPERTIES
|
set_target_properties(${INF_ENGINE_TARGET} PROPERTIES
|
||||||
INTERFACE_COMPILE_DEFINITIONS "HAVE_INF_ENGINE=1;INF_ENGINE_RELEASE=${INF_ENGINE_RELEASE}"
|
INTERFACE_COMPILE_DEFINITIONS "HAVE_INF_ENGINE=1;INF_ENGINE_RELEASE=${INF_ENGINE_RELEASE}"
|
||||||
)
|
)
|
||||||
|
@ -24,10 +24,11 @@
|
|||||||
#define INF_ENGINE_RELEASE_2019R2 2019020000
|
#define INF_ENGINE_RELEASE_2019R2 2019020000
|
||||||
#define INF_ENGINE_RELEASE_2019R3 2019030000
|
#define INF_ENGINE_RELEASE_2019R3 2019030000
|
||||||
#define INF_ENGINE_RELEASE_2020_1 2020010000
|
#define INF_ENGINE_RELEASE_2020_1 2020010000
|
||||||
|
#define INF_ENGINE_RELEASE_2020_2 2020020000
|
||||||
|
|
||||||
#ifndef INF_ENGINE_RELEASE
|
#ifndef INF_ENGINE_RELEASE
|
||||||
#warning("IE version have not been provided via command-line. Using 2019.1 by default")
|
#warning("IE version have not been provided via command-line. Using 2020.2 by default")
|
||||||
#define INF_ENGINE_RELEASE INF_ENGINE_RELEASE_2020_1
|
#define INF_ENGINE_RELEASE INF_ENGINE_RELEASE_2020_2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define INF_ENGINE_VER_MAJOR_GT(ver) (((INF_ENGINE_RELEASE) / 10000) > ((ver) / 10000))
|
#define INF_ENGINE_VER_MAJOR_GT(ver) (((INF_ENGINE_RELEASE) / 10000) > ((ver) / 10000))
|
||||||
|
Loading…
Reference in New Issue
Block a user