Skip to content

Commit

Permalink
[IE][CMAKE] Fix for in-tree generated InferenceEngineConfig.cmake (#3593
Browse files Browse the repository at this point in the history
)

Add `IE::` prefixed aliases for provided targets.
  • Loading branch information
Vladislav Vinogradov authored Dec 15, 2020
1 parent 524b226 commit 61752b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions inference-engine/cmake/config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

if(DEFINED IE_MAIN_SOURCE_DIR AND TARGET inference_engine)
set(InferenceEngine_LIBRARIES inference_engine inference_engine_c_api)
if(NOT TARGET IE::inference_engine)
add_library(IE::inference_engine ALIAS inference_engine)
endif()
if(TARGET inference_engine_c_api AND NOT TARGET IE::inference_engine_c_api)
add_library(IE::inference_engine_c_api ALIAS inference_engine_c_api)
endif()
else()
include("${CMAKE_CURRENT_LIST_DIR}/targets.cmake")
if(NOT MSVC)
Expand Down

0 comments on commit 61752b8

Please sign in to comment.