cmake.utils/uniquify_files_by_basename¶
- cmake.utils/uniquify_files_by_basename.uniquify_files_by_basename(OUTPUT_LIST INPUT_LIST MESSAGE_MODE)¶
This function uniquify a list of files based on the basename (name + extension) of the files.
This function take a list of file as input and uniquify it by checking the basenames of the entries. For example, /home/user/file1.sv and /home/user/dir/file1.sv are recognized as a unique file and only the first occurrence is kept. This function also check the files have the same content and throws an error if this is not the case.
- Parameters:
INPUT_LIST (string) – Input ist of files.
OUTPUT_LIST (string) – Output variable used to store the list of uniquify files.