Skip to content

Commit

Permalink
Allow missing OpenVINODeveloperPackage (openvinotoolkit#1243)
Browse files Browse the repository at this point in the history
Compiliung GenAI against ov archives prints Warning: Please, install
pybind11-stubgen==2.5.1 otherwise
  • Loading branch information
Wovchena authored and ilya-lavrenov committed Dec 3, 2024
1 parent 76bf49e commit bfed6d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,14 @@ if(pybind11_stubgen_AVAILABLE)
VERBATIM)

add_custom_target(${TARGET_NAME}_stub ALL DEPENDS ${output_file})
else()
elseif(OpenVINODeveloperPackage_FOUND)
# Produce warning message at build time as well
add_custom_command(OUTPUT pybind11_stub_gen_not_found.txt
COMMAND ${CMAKE_COMMAND}
-E cmake_echo_color --red "Warning: Please, install ${pybind11_stubgen_dep}")
add_custom_target(${TARGET_NAME}_stub ALL DEPENDS pybind11_stub_gen_not_found.txt)
else()
add_custom_target(${TARGET_NAME}_stub ALL)
endif()

add_dependencies(${TARGET_NAME}_stub ${TARGET_NAME})

0 comments on commit bfed6d6

Please sign in to comment.