Fixed ENABLE_NCC_STYLE condition (#8092)

This commit is contained in:
Ilya Lavrenov
2021-10-20 09:01:59 +03:00
committed by GitHub
parent c454e414bb
commit 4f203b9a2e

View File

@@ -50,13 +50,6 @@ endif()
# check python requirements_dev.txt
set(req_file "${ncc_style_dir}/requirements_dev.txt")
file(STRINGS ${req_file} req_lines)
foreach(req IN LISTS req_lines)
ie_check_pip_package(${req} STATUS)
endforeach()
set(ncc_script_py "${ncc_style_dir}/ncc/ncc.py")
if(NOT EXISTS ${ncc_script_py})
@@ -64,6 +57,15 @@ if(NOT EXISTS ${ncc_script_py})
set(ENABLE_NCC_STYLE OFF)
endif()
if(ENABLE_NCC_STYLE)
set(req_file "${ncc_style_dir}/requirements_dev.txt")
file(STRINGS ${req_file} req_lines)
foreach(req IN LISTS req_lines)
ie_check_pip_package(${req} STATUS)
endforeach()
endif()
# create high-level target
if(ENABLE_NCC_STYLE AND NOT TARGET ncc_all)