diff options
author | 2016-12-03 19:36:02 -0800 | |
---|---|---|
committer | 2016-12-03 19:36:02 -0800 | |
commit | 7b1f8701f5e418d2b11621a703085cbd08079dc7 (patch) | |
tree | b3d0c82ca579de7194ff300eec49f663be473455 | |
parent | a4737459326e5b748dc33370fb8f2e74a8c513fb (diff) | |
download | paludis-7b1f8701f5e418d2b11621a703085cbd08079dc7.tar.gz paludis-7b1f8701f5e418d2b11621a703085cbd08079dc7.tar.xz |
build: remove unnecessary MD5 usage
Don't add a uniquing hash into the target, they are already unique based on the
file name being generated. If we ever end up with the same file name being used
in multiple directories, we can re-introduce the MD5 nonce. This should speed
up the generation a slight bit.
-rw-r--r-- | cmake/modules/PaludisGeneratorUtils.cmake | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/cmake/modules/PaludisGeneratorUtils.cmake b/cmake/modules/PaludisGeneratorUtils.cmake index f9edcef4e..8ce710607 100644 --- a/cmake/modules/PaludisGeneratorUtils.cmake +++ b/cmake/modules/PaludisGeneratorUtils.cmake @@ -21,8 +21,7 @@ function(paludis_m4process input_file target) string(REGEX REPLACE "\\.[^.]*$" "" output_file "${output_file}") endif() - string(MD5 md5 "paludis-m4process-${output_file}") - set(target_name paludis-m4process-${md5}-${input_file_basename}) + set(target_name paludis-m4process-${input_file_basename}) add_custom_command(OUTPUT ${output_file} @@ -53,8 +52,7 @@ function(paludis_seprocess input_file) get_filename_component(input_file_basename_we "${input_file}" NAME_WE) set(output_header_file "${CMAKE_CURRENT_BINARY_DIR}/${input_file_basename_we}-se.hh") - string(MD5 md5 "paludis-seprocess-${output_header_file}") - set(header_target_name paludis-seprocess-${md5}-${input_file_basename_we}-se.hh) + set(header_target_name paludis-seprocess-${input_file_basename_we}-se.hh) set(${PSEP_HEADER_TARGET} ${header_target_name} PARENT_SCOPE) add_custom_command(OUTPUT @@ -68,8 +66,7 @@ function(paludis_seprocess input_file) set(output_source_file "${CMAKE_CURRENT_BINARY_DIR}/${input_file_basename_we}-se.cc") - string(MD5 md5 "paludis-seprocess-${output_source_file}") - set(source_target_name paludis-seprocess-${md5}-${input_file_basename_we}-se.cc) + set(source_target_name paludis-seprocess-${input_file_basename_we}-se.cc) set(${PSEP_SOURCE_TARGET} ${source_target_name} PARENT_SCOPE) add_custom_command(OUTPUT @@ -101,8 +98,7 @@ function(paludis_nnprocess input_file) get_filename_component(input_file_basename_we "${input_file}" NAME_WE) set(output_header_file "${CMAKE_CURRENT_BINARY_DIR}/${input_file_basename_we}-nn.hh") - string(MD5 md5 "paludis-nnprocess-${output_header_file}") - set(header_target_name paludis-nnprocess-${md5}-${input_file_basename_we}-nn.hh) + set(header_target_name paludis-nnprocess-${input_file_basename_we}-nn.hh) add_custom_command(OUTPUT ${output_header_file} @@ -115,8 +111,7 @@ function(paludis_nnprocess input_file) set(output_source_file "${CMAKE_CURRENT_BINARY_DIR}/${input_file_basename_we}-nn.cc") - string(MD5 md5 "paludis-nnprocess-${output_source_file}") - set(source_target_name paludis-nnprocess-${md5}-${input_file_basename_we}-nn.cc) + set(source_target_name paludis-nnprocess-${input_file_basename_we}-nn.cc) add_custom_command(OUTPUT ${output_source_file} |