Skip to content

Commit

Permalink
Search for the normalized package name when patching (#715)
Browse files Browse the repository at this point in the history
#708 broke patches specified via overrides due to the missing case normalization.

Authors:
  - Vyas Ramasubramani (https://github.com/vyasr)

Approvers:
  - Robert Maynard (https://github.com/robertmaynard)

URL: #715
  • Loading branch information
vyasr authored Nov 5, 2024
1 parent 8c26daa commit 2f81c15
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rapids-cmake/cpm/detail/generate_patch_command.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ function(rapids_cpm_generate_patch_command package_name version patch_command)
get_default_json(${package_name} json_data)
get_override_json(${package_name} override_json_data)

get_property(json_path GLOBAL PROPERTY rapids_cpm_${package_name}_json_file)
get_property(override_json_path GLOBAL PROPERTY rapids_cpm_${package_name}_override_json_file)
string(TOLOWER "${package_name}" normalized_pkg_name)
get_property(json_path GLOBAL PROPERTY rapids_cpm_${normalized_pkg_name}_json_file)
get_property(override_json_path GLOBAL
PROPERTY rapids_cpm_${normalized_pkg_name}_override_json_file)

string(JSON json_data ERROR_VARIABLE no_default_patch GET "${json_data}" patches)
string(JSON override_json_data ERROR_VARIABLE no_override_patch GET "${override_json_data}"
Expand Down

0 comments on commit 2f81c15

Please sign in to comment.