mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-18 22:08:53 +08:00
Related-To: NEO-1157 Change-Id: Ie1b907e838cfb9ad0d75cc8971d415f7c77103c9 Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
26 lines
784 B
CMake
26 lines
784 B
CMake
#
|
|
# Copyright (C) 2018-2020 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
|
|
if(IS_DIRECTORY ${NEO_SOURCE_DIR}/.git)
|
|
add_custom_target(lint
|
|
${NEO_SOURCE_DIR}/scripts/lint${BRANCH_DIR_SUFFIX}/set_copyright.sh
|
|
WORKING_DIRECTORY ${NEO_SOURCE_DIR}
|
|
)
|
|
set_target_properties(lint PROPERTIES
|
|
EXCLUDE_FROM_DEFAULT_BUILD TRUE
|
|
EXCLUDE_FROM_ALL TRUE
|
|
)
|
|
add_custom_target(lint_head
|
|
${NEO_SOURCE_DIR}/scripts/lint${BRANCH_DIR_SUFFIX}/set_copyright.sh HEAD
|
|
WORKING_DIRECTORY ${NEO_SOURCE_DIR}
|
|
)
|
|
set_target_properties(lint_head PROPERTIES
|
|
EXCLUDE_FROM_DEFAULT_BUILD TRUE
|
|
EXCLUDE_FROM_ALL TRUE
|
|
)
|
|
endif()
|
|
|