Skip to content

Commit

Permalink
[CMAKE] Fix to Api validator for older cmake versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-lavrenov committed Jan 7, 2025
1 parent 26e5fe9 commit a77ef21
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions cmake/developer_package/api_validator/api_validator.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ endfunction()

set(VALIDATED_TARGETS "" CACHE INTERNAL "")

function(_ov_add_api_validator_post_build_step)
#
# ov_add_api_validator_post_build_step(TARGET <name>)
#
function(ov_add_api_validator_post_build_step)
if((NOT ONECORE_API_VALIDATOR) OR (WINDOWS_STORE OR WINDOWS_PHONE))
return()
endif()
Expand Down Expand Up @@ -212,10 +215,3 @@ function(_ov_add_api_validator_post_build_step)
list(APPEND VALIDATED_TARGETS ${API_VALIDATOR_TARGETS})
set(VALIDATED_TARGETS "${VALIDATED_TARGETS}" CACHE INTERNAL "" FORCE)
endfunction()

#
# ov_add_api_validator_post_build_step(TARGET <name>)
#
function(ov_add_api_validator_post_build_step)
_ov_add_api_validator_post_build_step(${ARGN})
endfunction()

0 comments on commit a77ef21

Please sign in to comment.