Fixed ie_mark_target_as_cc (#8608)
This commit is contained in:
parent
09653b0d9c
commit
9676e643cf
@ -242,7 +242,11 @@ endif()
|
|||||||
# macro to mark target as conditionally compiled
|
# macro to mark target as conditionally compiled
|
||||||
|
|
||||||
function(ie_mark_target_as_cc TARGET_NAME)
|
function(ie_mark_target_as_cc TARGET_NAME)
|
||||||
target_link_libraries(${TARGET_NAME} PRIVATE openvino::conditional_compilation)
|
set(cc_library openvino::conditional_compilation)
|
||||||
|
if(TARGET IE::conditional_compilation)
|
||||||
|
set(cc_library IE::conditional_compilation)
|
||||||
|
endif()
|
||||||
|
target_link_libraries(${TARGET_NAME} PRIVATE ${cc_library})
|
||||||
|
|
||||||
if(NOT (SELECTIVE_BUILD STREQUAL "ON"))
|
if(NOT (SELECTIVE_BUILD STREQUAL "ON"))
|
||||||
return()
|
return()
|
||||||
|
Loading…
Reference in New Issue
Block a user