Commit 73f4907d authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #11280 from alalek:fix_cmake_warning_ninja_pylintrc

parents 333973b8 5e030114
......@@ -97,7 +97,11 @@ function(ocv_pylint_finalize)
return()
endif()
file(COPY "${CMAKE_SOURCE_DIR}/platforms/scripts/pylintrc" DESTINATION "${CMAKE_BINARY_DIR}")
add_custom_command(
OUTPUT "${CMAKE_BINARY_DIR}/pylintrc"
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_SOURCE_DIR}/platforms/scripts/pylintrc" "${CMAKE_BINARY_DIR}/pylintrc"
DEPENDS "${CMAKE_SOURCE_DIR}/platforms/scripts/pylintrc"
)
set(PYLINT_CONFIG_SCRIPT "")
ocv_cmake_script_append_var(PYLINT_CONFIG_SCRIPT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment