mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
Related-To: NEO-1157 Change-Id: Ie1b907e838cfb9ad0d75cc8971d415f7c77103c9 Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
23 lines
525 B
CMake
23 lines
525 B
CMake
#
|
|
# Copyright (C) 2019-2020 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
|
|
if(WIN32)
|
|
set(extension bat)
|
|
else()
|
|
set(extension sh)
|
|
endif()
|
|
|
|
add_custom_target(format_files
|
|
${NEO_SOURCE_DIR}/scripts/format/format.${extension} ${NEO_SOURCE_DIR}
|
|
WORKING_DIRECTORY ${NEO_SOURCE_DIR}
|
|
COMMENT "Formatting changed files"
|
|
)
|
|
|
|
set_target_properties(format_files PROPERTIES
|
|
EXCLUDE_FROM_DEFAULT_BUILD TRUE
|
|
EXCLUDE_FROM_ALL TRUE
|
|
)
|