aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-12-07 09:30:00 -0800
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-12-07 09:30:00 -0800
commitf01d4a0af068ab9cb5bc29fa3e4ee04291c1cc83 (patch)
tree7f6249078077b8c91acdc8b035964efbb8483cc4 /cmake
parentdc5c9bb30f29e402e3d4b2a9e0251ab64ec98eda (diff)
downloadpaludis-f01d4a0af068ab9cb5bc29fa3e4ee04291c1cc83.tar.gz
paludis-f01d4a0af068ab9cb5bc29fa3e4ee04291c1cc83.tar.xz
Revert "build: remove unnecessary MD5 usage"
This reverts commit 7b1f8701f5e418d2b11621a703085cbd08079dc7. Restore the original change. The uniquing is needed for builds which enable python and ruby bindings together.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/PaludisGeneratorUtils.cmake15
1 files changed, 10 insertions, 5 deletions
diff --git a/cmake/modules/PaludisGeneratorUtils.cmake b/cmake/modules/PaludisGeneratorUtils.cmake
index 8ce710607..f9edcef4e 100644
--- a/cmake/modules/PaludisGeneratorUtils.cmake
+++ b/cmake/modules/PaludisGeneratorUtils.cmake
@@ -21,7 +21,8 @@ function(paludis_m4process input_file target)
string(REGEX REPLACE "\\.[^.]*$" "" output_file "${output_file}")
endif()
- set(target_name paludis-m4process-${input_file_basename})
+ string(MD5 md5 "paludis-m4process-${output_file}")
+ set(target_name paludis-m4process-${md5}-${input_file_basename})
add_custom_command(OUTPUT
${output_file}
@@ -52,7 +53,8 @@ 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")
- set(header_target_name paludis-seprocess-${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(${PSEP_HEADER_TARGET} ${header_target_name} PARENT_SCOPE)
add_custom_command(OUTPUT
@@ -66,7 +68,8 @@ function(paludis_seprocess input_file)
set(output_source_file "${CMAKE_CURRENT_BINARY_DIR}/${input_file_basename_we}-se.cc")
- set(source_target_name paludis-seprocess-${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(${PSEP_SOURCE_TARGET} ${source_target_name} PARENT_SCOPE)
add_custom_command(OUTPUT
@@ -98,7 +101,8 @@ 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")
- set(header_target_name paludis-nnprocess-${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)
add_custom_command(OUTPUT
${output_header_file}
@@ -111,7 +115,8 @@ function(paludis_nnprocess input_file)
set(output_source_file "${CMAKE_CURRENT_BINARY_DIR}/${input_file_basename_we}-nn.cc")
- set(source_target_name paludis-nnprocess-${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)
add_custom_command(OUTPUT
${output_source_file}