@ -140,12 +140,21 @@ endif()
# A d d m o r e f e a t u r e s t o t h e t a r g e t
# A d d m o r e f e a t u r e s t o t h e t a r g e t
if ( INF_ENGINE_TARGET )
if ( INF_ENGINE_TARGET )
if ( NOT INF_ENGINE_RELEASE )
if ( DEFINED InferenceEngine_VERSION )
message ( STATUS "InferenceEngine: ${InferenceEngine_VERSION}" )
if ( NOT INF_ENGINE_RELEASE AND NOT ( InferenceEngine_VERSION VERSION_LESS "2021.4" ) )
math ( EXPR INF_ENGINE_RELEASE_INIT "${InferenceEngine_VERSION_MAJOR} * 1000000 + ${InferenceEngine_VERSION_MINOR} * 10000 + ${InferenceEngine_VERSION_PATCH} * 100" )
endif ( )
endif ( )
if ( NOT INF_ENGINE_RELEASE AND NOT INF_ENGINE_RELEASE_INIT )
message ( WARNING "InferenceEngine version has not been set, 2021.4 will be used by default. Set INF_ENGINE_RELEASE variable if you experience build errors." )
message ( WARNING "InferenceEngine version has not been set, 2021.4 will be used by default. Set INF_ENGINE_RELEASE variable if you experience build errors." )
set ( INF_ENGINE_RELEASE_INIT "2021040000" )
elseif ( DEFINED INF_ENGINE_RELEASE )
set ( INF_ENGINE_RELEASE_INIT "${INF_ENGINE_RELEASE}" )
endif ( )
endif ( )
set ( INF_ENGINE_RELEASE "2021040000" CACHE STRING "Force IE version, should be in form YYYYAABBCC (e.g. 2020.1.0.2 -> 2020010002)" )
set ( INF_ENGINE_RELEASE "${INF_ENGINE_RELEASE_INIT} " 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
I N T E R F A C E _ C O M P I L E _ D E F I N I T I O N S " H A V E _ I N F _ E N G I N E = 1 ; I N F _ E N G I N E _ R E L E A S E = $ { I N F _ E N G I N E _ R E L E A S E } "
I N T E R F A C E _ C O M P I L E _ D E F I N I T I O N S " H A V E _ I N F _ E N G I N E = 1 ; I N F _ E N G I N E _ R E L E A S E = $ { I N F _ E N G I N E _ R E L E A S E } "
)
)
endif ( )
endif ( )