* Use FindPython3.cmake
* Fixed compilation on macOS 14 with new core development tools
* Try to use Python3_SOABI instead of PYTHON_MODULE_EXTENSION
* Use Development.Module
* Keep specifying only Python3_EXECUTABLE
* Print PYTHON_MODULE_EXTENSION
* Added check for minimal cmake version for python API
* Returned Python3_INCLUDE_DIR for cross-compilation case
* Try to allow cmake older than 3.18
* Use build python interpreter to check cython dependency
* revert changes in .ci/openvino-onnx/Dockerfile
* removed unused code
* Fixed issue with variables scope
* Experiment: remove include dirs
* Corrected docs
* Use pybind11 function to set extension
* Revert "Experiment: remove include dirs"
This reverts commit 6f7f90211c.
* Refactor ConvolutionBackpropDataLayerTest, ConvolutionLayerTest, DeformableConvolutionLayerTest (#19810)
* Refactor ConvolutionBackpropDataLayerTest
* Refactor ConvolutionLayerTest
* Refactor DeformableConvolutionLayerTest
* Apply comments
* Apply comments
* Fix
* Updated minimum cmake version for Windows
* Simplified check
* Removed useless message status
* Use puiblic option
---------
Co-authored-by: Oleg Pipikin <oleg.pipikin@intel.com>
56 lines
1.6 KiB
CMake
56 lines
1.6 KiB
CMake
# Copyright (C) 2018-2023 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
file(REMOVE "${OUTPUT_FILE}")
|
|
|
|
set(DEFAULT_FILTER "
|
|
-build/header_guard,\
|
|
-build/include,\
|
|
-build/include_order,\
|
|
-build/include_subdir,\
|
|
-build/include_what_you_use,\
|
|
-build/namespaces,\
|
|
-build/c++11,\
|
|
-whitespace/indent,\
|
|
-whitespace/comments,\
|
|
-whitespace/ending_newline,\
|
|
-runtime/references,\
|
|
-runtime/int,\
|
|
-runtime/explicit,\
|
|
-readability/todo,\
|
|
-readability/fn_size,\
|
|
")
|
|
set(FILTER "${DEFAULT_FILTER}${CUSTOM_FILTER}")
|
|
|
|
execute_process(
|
|
COMMAND
|
|
"${Python3_EXECUTABLE}"
|
|
"${CPPLINT_SCRIPT}"
|
|
"--linelength=160"
|
|
"--counting=detailed"
|
|
"--quiet"
|
|
"--filter=${FILTER}"
|
|
"${INPUT_FILE}"
|
|
WORKING_DIRECTORY "${WORKING_DIRECTORY}"
|
|
RESULT_VARIABLE result
|
|
OUTPUT_VARIABLE output
|
|
ERROR_VARIABLE output)
|
|
|
|
# Store cpplint output to file (replace problematic symbols)
|
|
string(REPLACE "\"" ""\;" formatted_output "${output}")
|
|
string(REPLACE "<" "<\;" formatted_output "${formatted_output}")
|
|
string(REPLACE ">" ">\;" formatted_output "${formatted_output}")
|
|
string(REPLACE "'" "&apos\;" formatted_output "${formatted_output}")
|
|
string(REPLACE "&" "&\;" formatted_output "${formatted_output}")
|
|
file(WRITE "${OUTPUT_FILE}" "${formatted_output}")
|
|
|
|
if(NOT SKIP_RETURN_CODE)
|
|
# Pass through the cpplint return code
|
|
if(NOT result EQUAL "0")
|
|
# Display the cpplint output to console (to parse it form IDE)
|
|
message("${output}")
|
|
message(FATAL_ERROR "[cpplint] Code style check failed for : ${INPUT_FILE}")
|
|
endif()
|
|
endif()
|