mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Update VTKmCheckCopyright.cmake to ignore build files.
This commit is contained in:
parent
8f406cf460
commit
4f49a8407b
@ -72,6 +72,12 @@ foreach (index RANGE ${begin_index} ${end_index})
|
||||
list(GET license_lines ${index} tpl_file)
|
||||
set(EXCEPTIONS ${EXCEPTIONS} ${tpl_file})
|
||||
endforeach(index)
|
||||
# if the build directory is in the source directory, exclude generated build
|
||||
# files
|
||||
find_path(BUILD_DIR CMakeCache.txt .)
|
||||
get_filename_component(abs_build_dir ${BUILD_DIR} ABSOLUTE)
|
||||
get_filename_component(build_dir_name ${abs_build_dir} NAME)
|
||||
set(EXCEPTIONS ${EXCEPTIONS} ${build_dir_name}/*)
|
||||
message("${EXCEPTIONS}")
|
||||
|
||||
# Gets the current year (if possible).
|
||||
|
Loading…
Reference in New Issue
Block a user